James Le Cuirot
Not a member
James Le Cuirot's latest activity
Monday, May 18 2009
-
- Title changed from Eager loading does not respect default_scope to Eager loading does not scope
Pratik, please read the rest of the ticket. This isn't just about default_scope. The title is actually misleading and I will now change it. Note in particular t...
Friday, May 01 2009
Friday, March 27 2009
-
James Le Cuirot commented at 6:08 PMI was going to say I forgot to tackle construct_finder_sql_for_association_limiting but it turns out I didn't need to. It already works with the above patch.
-
James Le Cuirot commented at 3:05 PMHere's a patch with a test for the non-preloading case. This one is less pretty because with_scope is awkward to work with. I suppose I could have split it out ...
-
James Le Cuirot commented at 11:08 AMThis may be even more serious than I thought. I haven't tried it but it appears that my with_scope example above would have worked in Rails 2.2. The change in b...
-
James Le Cuirot created the ticket at 3:24 PMI gather that adding a &block parameter to your method signature can impact performance. In the case of with_scope, the parameter actually isn't used so it shou...
-
James Le Cuirot commented at 2:12 PMSorry. Stupid Markdown...
I hit a very similar issue, which I reported in ticket #2329. As well as having .* in :select, I also had a calculated column, hence t...
-
James Le Cuirot commented at 2:11 PMI hit a very similar issue, which I reported in ticket #2329. As well as having . in :select, I also had a calculated column, hence there was a comma in there. ...
Thursday, March 26 2009
-
James Le Cuirot commented at 3:59 PMI've thought about it some more and an easy workaround is to duplicate the default_scope in the association definition like so.
class Tag < ActiveRecord::Bas... -
James Le Cuirot commented at 3:18 PMActually the problem goes deeper. This doesn't work either.
Tagging.send(:with_scope, :find => { :conditions => { :enabled => true } }) do Tag.first(:incl...