diff options
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 a140fb8e57..f0d40e741b 100644 --- a/activerecord/test/models/developer.rb +++ b/activerecord/test/models/developer.rb @@ -87,7 +87,7 @@ end class DeveloperOrderedBySalary < ActiveRecord::Base self.table_name = 'developers' default_scope :order => 'salary DESC' - scope :by_name, :order => 'name DESC' + scope :by_name, order('name DESC') scope :reordered_by_name, reorder('name DESC') def self.all_ordered_by_name |