Sha256: 754abc5b6b1859b8a404783309d8c5615966202222589da534d036f25fab7c08

Contents?: true

Size: 209 Bytes

Versions: 2

Compression:

Stored size: 209 Bytes

Contents

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

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
activesupport-3.0.pre lib/active_support/core_ext/hash/indifferent_access.rb
recliner-0.0.1 vendor/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb