diff options
author | Marcel Molina <marcel@vernix.org> | 2007-10-26 03:20:14 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2007-10-26 03:20:14 +0000 |
commit | 8b2a6014a2971159c2169704ee5d3402f8d8d1a3 (patch) | |
tree | 24a94eb544264c14fe7c1cea6c80f09d3ce6757b /activerecord/lib | |
parent | 985ee85f598b5a43543a566ef87738b96efab117 (diff) | |
download | rails-8b2a6014a2971159c2169704ee5d3402f8d8d1a3.tar.gz rails-8b2a6014a2971159c2169704ee5d3402f8d8d1a3.tar.bz2 rails-8b2a6014a2971159c2169704ee5d3402f8d8d1a3.zip |
Use VALID_FIND_OPTIONS when resolving :find scoping rather than hard coding the list of valid find options. Closes #9443 [sur]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8025 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib')
-rwxr-xr-x | activerecord/lib/active_record/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 47bc8bdb2c..48517d2ca8 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1428,7 +1428,7 @@ module ActiveRecord #:nodoc: method_scoping.assert_valid_keys([ :find, :create ]) if f = method_scoping[:find] - f.assert_valid_keys([ :conditions, :joins, :select, :include, :from, :offset, :limit, :order, :group, :readonly, :lock ]) + f.assert_valid_keys(VALID_FIND_OPTIONS) set_readonly_option! f end |