Module: Hanami::Validations::Form::ClassMethods Private
- Defined in:
- lib/hanami/validations/form.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.
Instance Method Summary collapse
- #validations(&blk) ⇒ Object private
Instance Method Details
#validations(&blk) ⇒ Object
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.
34 35 36 |
# File 'lib/hanami/validations/form.rb', line 34 def validations(&blk) @_validator = Class.new(BaseValidator) { params(&blk) }.new end |