blob: 9c2af9e9e0ba03d16af3eb5ab2a2a3459f378eb6 (
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 = HashWithIndifferentAccess.new(self)
hash.default = self.default
hash
end
end
|