aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-12-08 00:12:52 +0000
committerRick Olson <technoweenie@gmail.com>2007-12-08 00:12:52 +0000
commit4dcd4069f577e2105ea25929be1350fcefb9f71d (patch)
tree6501ef68e3c7594580620e8fc6a182507d8350ff /activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
parent1acd54a5b44639ecb0bd0e37545a2e862df2b9a7 (diff)
downloadrails-4dcd4069f577e2105ea25929be1350fcefb9f71d.tar.gz
rails-4dcd4069f577e2105ea25929be1350fcefb9f71d.tar.bz2
rails-4dcd4069f577e2105ea25929be1350fcefb9f71d.zip
Fix HashWithIndifferentAccess#to_options! so it doesn't clear the options hash. Closes #10419 [ReinH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/lib/active_support/core_ext/hash/indifferent_access.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/hash/indifferent_access.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
index 01d5b3a6a3..fda0489e76 100644
--- a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
+++ b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
@@ -63,6 +63,7 @@ class HashWithIndifferentAccess < Hash
def stringify_keys!; self end
def symbolize_keys!; self end
+ def to_options!; self end
# Convert to a Hash with String keys.
def to_hash