This project is archived and is in readonly mode.
default_scope Errors with named_scope
-
Peter Wagenet
- Tag changed from 2.3-rc2, activerecord, default_scope, scope to 2.3-rc2, activerecord, default_scope, named_scope, scope
This is due to some odd behavior in how :create scopes are merged. Apparently it's not expected that you will provide a string to them (which default_scope may), only a hash. This is partially fixed in my patch here: http://rails.lighthouseapp.com/p...
-
Peter Leonhardt
- Tag changed from 2.3-rc2, activerecord, default_scope, named_scope, scope to 2.3-rc2, activerecord, bug, default_scope, named_scope, scope
-
Bruno Michel
My patch in #2371 also fixes this bug.
-
Ryan Bigg
- State changed from new to duplicate