Module: RequestParamsValidation::Params::Validators::Custom
- Defined in:
- lib/request_params_validation/params/validators/custom.rb
Instance Method Summary collapse
Instance Method Details
#validate_custom_validation! ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/request_params_validation/params/validators/custom.rb', line 5 def validate_custom_validation! result = param.custom_validation.function.call(value) unless result raise_error( :on_invalid_parameter_custom_validation, details: param.custom_validation. ) end end |