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.


642
643
644
645
646
# File 'activemodel/lib/active_model/errors.rb', line 642

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