From a4eab8f1f3306656bef3bacebaceec4e88fdc57b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 28 Mar 2010 19:11:06 -0700 Subject: Update example of default_scope to use the new arel finder syntax --- activerecord/lib/active_record/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: # options 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) -- cgit v1.2.3