Module: Hanami::V1::Validations::Form
- Included in:
- Action::Params
- Defined in:
- lib/hanami/v1/validations/form.rb
Overview
Validations mixin for forms/HTTP params.
This must be used when the input comes from a browser or an HTTP endpoint. It knows how to deal with common data types, and common edge cases like blank strings.
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
-
.included(base) ⇒ Object
private
Override Ruby’s hook for modules.
Class Method Details
.included(base) ⇒ 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.
Override Ruby’s hook for modules.
51 52 53 54 55 56 |
# File 'lib/hanami/v1/validations/form.rb', line 51 def self.included(base) base.class_eval do include Hanami::V1::Validations extend ClassMethods end end |