diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-08 00:38:06 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-07-08 00:38:06 +0000 |
commit | 7767e33b4320231b8cdff48c36f180381370e585 (patch) | |
tree | 052a8349dd9f64f9f21fbaf42e64211372cc530f /activerecord/lib/active_record | |
parent | 91317ad61febda0476aa72c3fb1e4763c777227b (diff) | |
download | rails-7767e33b4320231b8cdff48c36f180381370e585.tar.gz rails-7767e33b4320231b8cdff48c36f180381370e585.tar.bz2 rails-7767e33b4320231b8cdff48c36f180381370e585.zip |
Don't modify options parameters in-place. Closes #3819.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-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 1c8c819efa..94b6645a17 100755 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -1390,7 +1390,7 @@ module ActiveRecord #:nodoc: end def extract_options_from_args!(args) #:nodoc: - args.last.is_a?(Hash) ? args.pop : {} + args.last.is_a?(Hash) ? args.pop.dup : {} end VALID_FIND_OPTIONS = [ :conditions, :include, :joins, :limit, :offset, |