diff options
author | Daniel Luz <dev@mernen.com> | 2008-12-01 02:58:39 -0200 |
---|---|---|
committer | Daniel Luz <dev@mernen.com> | 2008-12-08 16:50:56 -0200 |
commit | c942eccfa00b4be3d10b9b9629879d5ea7185122 (patch) | |
tree | 587e6c58503841b1b5060b40d26eefe689f3d462 /activerecord/lib | |
parent | 0f7207fff1ad44ad605fc6f5960ffc743375b122 (diff) | |
download | rails-c942eccfa00b4be3d10b9b9629879d5ea7185122.tar.gz rails-c942eccfa00b4be3d10b9b9629879d5ea7185122.tar.bz2 rails-c942eccfa00b4be3d10b9b9629879d5ea7185122.zip |
Update documentation for default_scope
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | 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 5d614442c3..78f0652eb4 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 - # <tt>method_scoping</tt> argument is the same as in with_scope. + # <tt>options</tt> 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] : {} } |