diff options
author | Mislav Marohnić <mislav.marohnic@gmail.com> | 2008-09-13 20:12:17 +0200 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-09-13 20:05:17 +0100 |
commit | 96055414d6197b9705e408c17236f79372a007e5 (patch) | |
tree | 6ae8b9485c441bee2de38702c6646cf7b637874f /activesupport/lib/active_support/core_ext/hash | |
parent | 113de01eaf48f64d2adf9f34d699e51619af616f (diff) | |
download | rails-96055414d6197b9705e408c17236f79372a007e5.tar.gz rails-96055414d6197b9705e408c17236f79372a007e5.tar.bz2 rails-96055414d6197b9705e408c17236f79372a007e5.zip |
Ensure Hash#except is allowed on a frozen hash. References #382
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash')
-rw-r--r-- | activesupport/lib/active_support/core_ext/hash/except.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/except.rb b/activesupport/lib/active_support/core_ext/hash/except.rb index f26d01553d..949976d741 100644 --- a/activesupport/lib/active_support/core_ext/hash/except.rb +++ b/activesupport/lib/active_support/core_ext/hash/except.rb @@ -10,7 +10,7 @@ module ActiveSupport #:nodoc: module Except # Returns a new hash without the given keys. def except(*keys) - clone.except!(*keys) + dup.except!(*keys) end # Replaces the hash without the given keys. |