Class: DelegateValidation::Validator::DelegateError

Inherits:
ActiveModel::Errors
  • Object
show all
Defined in:
app/models/delegate_validation.rb

Instance Method Summary collapse

Constructor Details

#initialize(base, target) ⇒ DelegateError

Returns a new instance of DelegateError


28
29
30
31
# File 'app/models/delegate_validation.rb', line 28

def initialize(base, target)
  @base     = base
  @messages = target.errors.messages
end