method
new_from_hash_copying_default
v4.1.8 -
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 74
def self.new_from_hash_copying_default(hash)
hash = hash.to_hash
new(hash).tap do |new_hash|
new_hash.default = hash.default
end
end