Class: ActiveModel::DeprecationHandlingDetailsHash

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
activemodel/lib/active_model/errors.rb

Instance Method Summary collapse

Constructor Details

#initialize(details) ⇒ DeprecationHandlingDetailsHash

Returns a new instance of DeprecationHandlingDetailsHash.



615
616
617
618
619
# File 'activemodel/lib/active_model/errors.rb', line 615

def initialize(details)
  details.default = []
  details.freeze
  super(details)
end