method
new_from_hash_copying_default
v4.2.9 -
Show latest stable
- Class:
ActiveSupport::HashWithIndifferentAccess
new_from_hash_copying_default(hash)public
No documentation available.
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 75
def self.new_from_hash_copying_default(hash)
hash = hash.to_hash
new(hash).tap do |new_hash|
new_hash.default = hash.default
new_hash.default_proc = hash.default_proc if hash.default_proc
end
end