Class: Reform::Form

Inherits:
Contract
  • Object
show all
Extended by:
Property
Includes:
Call, Prepopulate, Validate
Defined in:
lib/reform/form.rb

Defined Under Namespace

Modules: Call, Composition, Dry, Module, Mongoid, ORM, Prepopulate, Property, Validate Classes: Populator

Constant Summary collapse

Deserialize =

called after populator: form.deserialize(params) as this only included in the typed pipeline, it's not applied for scalars.

->(input, options) { input.deserialize(options[:fragment]) }
Coercion =
Disposable::Twin::Coercion

Instance Attribute Summary

Attributes included from Contract::Validate

#errors

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Property

property

Methods included from Call

#call

Methods included from Prepopulate

#prepopulate!

Methods included from Validate

#deserialize, #validate

Methods inherited from Contract

properties, property

Methods included from Contract::Readonly

#options_for, #readonly?

Methods included from Validation

included, #valid?

Methods included from Contract::Validate

#initialize, #validate, #validate!

Class Method Details

.default_nested_classObject


3
4
5
# File 'lib/reform/form.rb', line 3

def self.default_nested_class
  Form
end

Instance Method Details

#skip!Object


87
88
89
# File 'lib/reform/form.rb', line 87

def skip!
  Representable::Pipeline::Stop
end