aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xactiverecord/lib/active_record/base.rb4
1 files changed, 2 insertions, 2 deletions
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
- # <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] : {} }