Module: Hanami::Validations::Form 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.

Validations mixin for forms/HTTP params.

Since:

  • 0.6.0

Defined Under Namespace

Modules: ClassMethods Classes: BaseValidator

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ 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.

Since:

  • 0.6.0



20
21
22
23
24
25
26
27
# File 'lib/hanami/validations/form.rb', line 20

def self.included(klass)
  super

  klass.class_eval do
    include ::Hanami::Validations
    extend ClassMethods
  end
end