aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb
blob: b30e1602b624134fbcaf7ee56e2271260dba3634 (plain) (blame)
1
2
3
4
5
6
7
8
9
require 'active_support/hash_with_indifferent_access'

class Hash
  def with_indifferent_access
    hash = ActiveSupport::HashWithIndifferentAccess.new(self)
    hash.default = self.default
    hash
  end
end