Class: ActiveModel::DeprecationHandlingDetailsHash

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

Instance Method Summary collapse

Constructor Details

#initialize(details) ⇒ DeprecationHandlingDetailsHash

Returns a new instance of DeprecationHandlingDetailsHash.



661
662
663
664
665
# File 'lib/active_model/errors.rb', line 661

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