method

new_from_hash_copying_default

Importance_0
v4.2.7 - Show latest stable - 0 notes - Class: ActiveSupport::HashWithIndifferentAccess
new_from_hash_copying_default(hash) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.