method
new
rails latest stable - Class:
ActiveModel::Error
new(base, attribute, type = :invalid, **options)public
No documentation available.
# File activemodel/lib/active_model/error.rb, line 103
def initialize(base, attribute, type = :invalid, **options)
@base = base
@attribute = attribute
@raw_type = type
@type = type || :invalid
@options = options
end