Class: Grape::Validations::ParamsScope
- Inherits:
-
Object
- Object
- Grape::Validations::ParamsScope
- Defined in:
- lib/grape/nested_resources/validations/params_scope.rb
Instance Method Summary collapse
Instance Method Details
#requires_or_optional(*attrs, &block) ⇒ Object
5 6 7 |
# File 'lib/grape/nested_resources/validations/params_scope.rb', line 5 def requires_or_optional(*attrs, &block) optional(*attrs, &block) end |