diff options
author | Nick Ragaz <nick.ragaz@gmail.com> | 2010-09-02 00:36:18 -0400 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2010-09-05 08:27:51 -0300 |
commit | 16e078d908b79c78016e3a08afdd18a3dc77d40b (patch) | |
tree | 19f7bcecc5dc4407dbaa08b3aa670a0765ba8f5a /activerecord/test/models | |
parent | 91fec0d24d50d3b3e90c48b2501ca913544781cc (diff) | |
download | rails-16e078d908b79c78016e3a08afdd18a3dc77d40b.tar.gz rails-16e078d908b79c78016e3a08afdd18a3dc77d40b.tar.bz2 rails-16e078d908b79c78016e3a08afdd18a3dc77d40b.zip |
failing test for reorder overriding default_scope
[5528]
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/developer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/models/developer.rb b/activerecord/test/models/developer.rb index f0d40e741b..947583af76 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -88,7 +88,7 @@ class DeveloperOrderedBySalary < ActiveRecord::Base self.table_name = 'developers' default_scope :order => 'salary DESC' scope :by_name, order('name DESC') - scope :reordered_by_name, reorder('name DESC') + scope :reordered_by_name, reorder('name') def self.all_ordered_by_name with_scope(:find => { :order => 'name DESC' }) do |