Module: ActiveInteractor::Context::Errors Private

Included in:
Base
Defined in:
lib/active_interactor/context/errors.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Context error methods. Because Errors is a module classes should include Errors rather than inherit from it.

Author:

Since:

  • 1.0.3

Instance Method Summary collapse

Instance Method Details

#failure_errorsActiveModel::Errors

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Generic errors generated outside of validation.

Returns:

  • (ActiveModel::Errors)

    an instance of ActiveModel::Errors

Since:

  • 1.0.3



15
16
17
# File 'lib/active_interactor/context/errors.rb', line 15

def failure_errors
  @failure_errors ||= ActiveModel::Errors.new(self)
end