Class: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingActiveModelValidations::Middleware Private

Inherits:
MethodChainMiddleware
  • Object
show all
Defined in:
lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/middleware.rb

Overview

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

Since:

  • 1.0.0

Instance Method Summary collapse

Instance Method Details

#nextConvenientService::Service::Plugins::HasJSendResult::Entities::Result

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.



19
20
21
22
23
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/middleware.rb', line 19

def next(...)
  return result_from_active_model_validations if active_model_validations_errors.any?

  chain.next(...)
end