Module: ActiveCall::ValidationErrorable
- Extended by:
- ActiveSupport::Concern
- Included in:
- ValidationError
- Defined in:
- lib/active_call/concerns/validation_errorable.rb
Instance Method Summary collapse
Instance Method Details
#initialize(errors = ActiveModel::Errors.new(self), message = nil) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/active_call/concerns/validation_errorable.rb', line 10 def initialize(errors = ActiveModel::Errors.new(self), = nil) @errors = errors ||= errors..to_sentence.presence || 'Validation failed' super() end |