Ivan Ukhov
Not a member
Ivan Ukhov's latest activity
Sunday, January 30 2011
-
Ivan Ukhov commented at 8:05 AMSo, here is the gem: https://github.com/UVSoft/dynamic_default_scoping.
Saturday, January 29 2011
-
Ivan Ukhov commented at 2:21 PMPlease also try with regular scopes + where, order, etc. Again they will just overwrite default scopes. My workaround is a module called DynamicDefaultScoping, ...
Friday, January 28 2011
-
Ivan Ukhov commented at 7:31 PMActually, this is a problem with all defined scopes in the model using scope and new arel syntax. All regular scopes will overwrite default ones.
-
Ivan Ukhov commented at 6:58 PMAdam Wróbel,
about your patch, try to change the order of the default_scope calls in the model like:
class Widget < ActiveRecord::Base default_scope lambda {...
Saturday, November 20 2010
-
Ivan Ukhov commented at 3:49 PMThe current status of the has_many_through association and its dependent options is the following:
https://github.com/rails/rails/blob/a3161096c287043c7f22705a...
Friday, November 12 2010
-
Ivan Ukhov commented at 11:16 PMNeeraj Singh, not a problem at all, it's a pleasure for me to contribute a bit to this great framework) Thank you for your consideration and quick responce.
-
Ivan Ukhov commented at 5:48 PMYou say:
Other thing is that if the collection is not already loaded then .size internally calls .length .Josh says:
If the collection has already been loaded,... -
Ivan Ukhov commented at 5:05 PMAnd what about the following line?
https://github.com/rails/rails/blob/eeb9b379f9dba0c692856b2f5576cd3...
-
Ivan Ukhov commented at 4:41 PM[PATCH] Do not execute query to get count of records twice.
The problem is not in how many times it counts, but in the fact that it produces two different queri...
-
Ivan Ukhov commented at 4:33 PMThe patch is not correct, because it still calls size, but should call length. size in case of not loaded collection fires a counting query.
So, in the patch in...