Module: ConvenientService::Service::Plugins::HasJSendResultParamsValidations::UsingActiveModelValidations::NoOpConcern Private
- Defined in:
- lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.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.
Class Method Summary collapse
- .validate(*args, &block) ⇒ void private
- .validates(*attributes) ⇒ void private
- .validates!(*attributes) ⇒ void private
- .validates_each(*attr_names, &block) ⇒ void private
- .validators ⇒ void private
- .validators_on(*attributes) ⇒ void private
- .with(skip_validations: false) ⇒ Module private
Instance Method Summary collapse
- #errors ⇒ Array private
- #invalid?(context = nil) ⇒ Boolean private
- #valid?(context = nil) ⇒ Boolean (also: #validate) private
- #validate!(context = nil) ⇒ Boolean private
Methods included from Core::Entities::Config::Entities::Concerns::Usual
Class Method Details
.validate(*args, &block) ⇒ void
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.
This method returns an undefined value.
54 55 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 54 def validate(*args, &block) end |
.validates(*attributes) ⇒ void
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.
This method returns an undefined value.
33 34 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 33 def validates(*attributes) end |
.validates!(*attributes) ⇒ void
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.
This method returns an undefined value.
40 41 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 40 def validates!(*attributes) end |
.validates_each(*attr_names, &block) ⇒ void
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.
This method returns an undefined value.
47 48 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 47 def validates_each(*attr_names, &block) end |
.validators ⇒ void
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.
This method returns an undefined value.
61 62 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 61 def validators end |
.validators_on(*attributes) ⇒ void
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.
This method returns an undefined value.
68 69 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 68 def validators_on(*attributes) end |
.with(skip_validations: false) ⇒ Module
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.
21 22 23 24 25 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 21 def with(skip_validations: false) return self if skip_validations Plugins::HasJSendResultParamsValidations::UsingActiveModelValidations::Concern end |
Instance Method Details
#errors ⇒ Array
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.
77 78 79 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 77 def errors @errors ||= [] end |
#invalid?(context = nil) ⇒ Boolean
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.
99 100 101 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 99 def invalid?(context = nil) false end |
#valid?(context = nil) ⇒ Boolean Also known as: validate
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.
85 86 87 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 85 def valid?(context = nil) true end |
#validate!(context = nil) ⇒ Boolean
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.
107 108 109 |
# File 'lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/no_op_concern.rb', line 107 def validate!(context = nil) true end |