From ca9272bcd33ddeff234e605e12b1d26b56b9495f Mon Sep 17 00:00:00 2001 From: Daniel Luz Date: Mon, 1 Dec 2008 02:58:39 -0200 Subject: [PATCH] Update documentation for default_scope --- activerecord/lib/active_record/base.rb | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 9e45143..ae4cf5e 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -2021,10 +2021,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] : {} } -- 1.6.0.4