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.



32
33
34
35
# File 'app/models/delegate_validation.rb', line 32

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