Aliaksey Kandratsenka
Software Engineer · Not a member
Aliaksey Kandratsenka's latest activity
Saturday, February 05 2011
-
Aliaksey Kandratsenka commented at 5:23 PMFrom quick glimpse of rails 3 code base it seems to be still relevant. I.e. returning proxy from belong_to accessor stills makes little sense.
Obviously, patch ...
Tuesday, February 03 2009
-
Aliaksey Kandratsenka created the ticket at 6:49 AMWhen using association value in if/unless operators it's not possible to emulate nil value. So we used to load the associated record on first access and return ...
Thursday, January 29 2009
-
Aliaksey Kandratsenka commented at 6:43 AMI'm not sure if its good idea, because there's a significant difference with '||'. Usual 'or' is short-circuiting, while this method cannot work that way.
I thi...
Friday, January 16 2009
-
Aliaksey Kandratsenka commented at 7:42 AMConsider this:
parent = record.parent
old_id = parent.id
record.parent_id = new_id
assert_equal old_id, parent.id # will not fail
record.parent # here parent di...
-
Aliaksey Kandratsenka commented at 6:43 AMChange detection is indeed placed in proxy in my patch. But the code which should run this detection and drop the proxy should not IMO belong to proxy. That's b...
Tuesday, January 13 2009
-
Aliaksey Kandratsenka commented at 9:08 AMUploading. But I'm not happy with it right now. The problem is that there are many places where association is read (via #instance_variable_get), and all that p...
Monday, January 12 2009
-
-
Aliaksey Kandratsenka commented at 7:13 AMI still think that doing this in attribute writer is not ok.
When someone overrides attribute writer he/she uses 'write_attribute' and not 'super' to invoke ori...
Friday, November 28 2008
-
Aliaksey Kandratsenka commented at 3:42 PMAh. I forgot to mention that Gerrit's patch fixed the problem for us.
-
Aliaksey Kandratsenka commented at 3:41 PMAfter Gerrit's patch db:drop stopped working for mysql. That's because mysql connection wasn't established before call to #drop_database. I'm attaching a trivia...