diff options
Diffstat (limited to 'lib/hashie/extensions')
-rw-r--r-- | lib/hashie/extensions/indifferent_access.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/hashie/extensions/indifferent_access.rb b/lib/hashie/extensions/indifferent_access.rb index ebb4fe7..56af066 100644 --- a/lib/hashie/extensions/indifferent_access.rb +++ b/lib/hashie/extensions/indifferent_access.rb @@ -42,7 +42,7 @@ module Hashie # a hash without modifying the actual class. This is what # allows IndifferentAccess to spread to sub-hashes. def self.inject!(hash) - (class << hash; self; end).send :include, Hashie::Extensions::IndifferentAccess + (class << hash; self; end).send :include, IndifferentAccess hash.convert! end @@ -68,7 +68,7 @@ module Hashie def convert_value(value) if hash_lacking_indifference?(value) - Hashie::Extensions::IndifferentAccess.inject(value.dup) + IndifferentAccess.inject(value.dup) elsif value.is_a?(::Array) value.dup.replace(value.map { |e| convert_value(e) }) else |