class ActiveSupport::HashWithIndifferentAccess
def self.new_from_hash_copying_default(hash)
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
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