diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-03-28 19:11:06 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-03-28 19:11:06 -0700 |
commit | a4eab8f1f3306656bef3bacebaceec4e88fdc57b (patch) | |
tree | 6d9b5f3dcd1880ff10ed40662e6c6994b6cb2982 /activerecord/lib/active_record | |
parent | bd69589143371254b6d71aa74b1230144eb30a9c (diff) | |
download | rails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.tar.gz rails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.tar.bz2 rails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.zip |
Update example of default_scope to use the new arel finder syntax
Diffstat (limited to 'activerecord/lib/active_record')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index b81434c1f7..21b89694fc 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1290,7 +1290,7 @@ module ActiveRecord #:nodoc: # <tt>options</tt> argument is the same as in find. # # class Person < ActiveRecord::Base - # default_scope :order => 'last_name, first_name' + # default_scope order('last_name, first_name') # end def default_scope(options = {}) self.default_scoping << construct_finder_arel(options) |