class method
self.new_from_hash_copying_default
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v4.2.9Signature
self.new_from_hash_copying_default(hash)
No documentation comment.
Parameters
-
hashreq
Source
# File activesupport/lib/active_support/hash_with_indifferent_access.rb, line 30
def self.new_from_hash_copying_default(hash)
ActiveSupport::HashWithIndifferentAccess.new(hash).tap do |new_hash|
new_hash.default = hash.default
end
end
Defined in activesupport/lib/active_support/hash_with_indifferent_access.rb line 30
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in HashWithIndifferentAccess