This project is archived and is in readonly mode.
Impossible to overwrite the default scope ordering in the named scope using relation syntax
-
Vitalii Khustochka
- Tag set to arel rails3, order, patch, scope
Thus I have added
reorderto ActiveRecord::Base delegations. Also I have added the test.Please review the patch and comment if I have done something the wrong way. I don't know exactly where to add the test, so I modified the existing model DeveloperOrderedBySalary. Maybe I should have created new model to test named scopes ordering specifically.
-
Vitalii Khustochka
- Title changed from Impossible to overwrite the default scope ordering in the named scope to Impossible to overwrite the default scope ordering in the named scope using relation syntax
-
Vitalii Khustochka
- State changed from new to resolved
(from [b75fca9e57423eec81384ff3e35f38fd4f7fe47f]) Added reorder delegation for ActiveRecord::Base(to be able to overwrite the default_scope ordering in the named scope [#5093 Impossible to overwrite the default scope ordering in the named scope using r... state:resolved]
Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/b75fca9e57423eec81384ff3e35f38...
