diff options
author | Jonathan Rochkind <jonathan@dnil.net> | 2013-07-08 13:27:08 -0400 |
---|---|---|
committer | Jonathan Rochkind <jonathan@dnil.net> | 2013-07-08 13:27:08 -0400 |
commit | 27a4037afda6e6b8a8c59d8df7824b1df07e8ca6 (patch) | |
tree | e12ab21e56fc786baedb339a438bad03ff77c6da /lib | |
parent | 3321005d0bd77e0811a2cea6dbbd302d8e86851f (diff) | |
download | hashie-27a4037afda6e6b8a8c59d8df7824b1df07e8ca6.tar.gz |
IndifferentAccess, make #store respect indifference
Diffstat (limited to 'lib')
-rw-r--r-- | lib/hashie/extensions/indifferent_access.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/hashie/extensions/indifferent_access.rb b/lib/hashie/extensions/indifferent_access.rb index 13218a9..1e15e95 100644 --- a/lib/hashie/extensions/indifferent_access.rb +++ b/lib/hashie/extensions/indifferent_access.rb @@ -27,6 +27,7 @@ module Hashie base.class_eval do alias_method :regular_writer, :[]= alias_method :[]=, :indifferent_writer + alias_method :store, :indifferent_writer %w(default update replace fetch delete key? values_at).each do |m| alias_method "regular_#{m}", m alias_method m, "indifferent_#{m}" |