aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2010-03-28 19:11:06 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2010-03-28 19:11:06 -0700
commita4eab8f1f3306656bef3bacebaceec4e88fdc57b (patch)
tree6d9b5f3dcd1880ff10ed40662e6c6994b6cb2982
parentbd69589143371254b6d71aa74b1230144eb30a9c (diff)
downloadrails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.tar.gz
rails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.tar.bz2
rails-a4eab8f1f3306656bef3bacebaceec4e88fdc57b.zip
Update example of default_scope to use the new arel finder syntax
-rwxr-xr-xactiverecord/lib/active_record/base.rb2
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)