Class: DelegateValidation::Validator::DelegateError
- Inherits:
-
ActiveModel::Errors
- Object
- ActiveModel::Errors
- DelegateValidation::Validator::DelegateError
- Defined in:
- app/models/delegate_validation.rb
Instance Method Summary collapse
-
#initialize(base, target) ⇒ DelegateError
constructor
A new instance of DelegateError.
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. end |