From c4023cbe206415cf3ca1ca92cd9980a4aa4aed00 Mon Sep 17 00:00:00 2001 From: Daniel Luz Date: Mon, 1 Dec 2008 02:58:39 -0200 Subject: Update documentation for default_scope Signed-off-by: David Heinemeier Hansson --- activerecord/lib/active_record/base.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/lib') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index a23518b357..87c0002463 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2052,10 +2052,10 @@ module ActiveRecord #:nodoc: end # Sets the default options for the model. The format of the - # method_scoping argument is the same as in with_scope. + # options argument is the same as in find. # # class Person < ActiveRecord::Base - # default_scope :find => { :order => 'last_name, first_name' } + # default_scope :order => 'last_name, first_name' # end def default_scope(options = {}) self.default_scoping << { :find => options, :create => (options.is_a?(Hash) && options.has_key?(:conditions)) ? options[:conditions] : {} } -- cgit v1.2.3