method
new
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::Associations::NestedError
new(association, inner_error)public
No documentation available.
# File activerecord/lib/active_record/associations/nested_error.rb, line 8
def initialize(association, inner_error)
@base = association.owner
@association = association
@inner_error = inner_error
super(@base, inner_error, { attribute: compute_attribute(inner_error) })
end