This project is archived and is in readonly mode.
batches: each with named_scope doesn't seem to work
-
Carlos Antonio da Silva
- Assigned user set to DHH
I've made a little test adding the
eachmethod to theNON_DELEGATE_METHODSinside Scope class, so the method won't be delegated to the Array and will correctly be handled by the neweachmethod in batches.I think this way should work, and like I said we still have the
all.eachmethod use when needed. -
Pratik
- Assigned user changed from DHH to Pratik
- Milestone cleared.
-
Repository
- State changed from new to resolved
(from [0b6f514947c38bf7af2b7e98905a49a94832e5f6]) Add NamedScope#find_each tests [#2201 batches: each with named_scope doesn't seem to work state:resolved] http://github.com/rails/rails/co...
-
Carlos Antonio da Silva
I've created the patch using git diff and not git format-patch.. sorry..
I really liked changing method name from
eachtofind_each. This makes things cleaner.
