diff options
| -rw-r--r-- | activesupport/lib/active_support/core_ext/hash/indifferent_access.rb | 5 | 
1 files changed, 5 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 b30e1602b6..0420e206af 100644 --- a/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +++ b/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb @@ -1,6 +1,11 @@  require 'active_support/hash_with_indifferent_access'  class Hash + +  # Returns an +ActiveSupport::HashWithIndifferentAccess+ out of its receiver: +  # +  #   {:a => 1}.with_indifferent_access["a"] # => 1 +  #    def with_indifferent_access      hash = ActiveSupport::HashWithIndifferentAccess.new(self)      hash.default = self.default | 
