Class: Reform::Form

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

Overview

ModelReflections will be the interface between the form object and form builders like simple_form.

This module is meant to collect all dependencies simple_form needs in addition to the ActiveModel ones. Goal is to collect all methods and define a reflection API so simple_form works with all ORMs and Reform doesn’t have to “guess” what simple_form and other form helpers need.

Defined Under Namespace

Modules: ActiveModel, ActiveRecord, Composition, Lotus, Module, Mongoid, MultiParameterAttributes, ORM, Prepopulate, Property, Validate Classes: Populator, UniqueValidator

Constant Summary collapse

Coercion =
Disposable::Twin::Coercion
ModelReflections =
ActiveModel::ModelReflections

Method Summary

Methods included from Property

property

Methods included from Prepopulate

#prepopulate!

Methods included from Validate

#deserialize!, #validate

Methods inherited from Contract

properties, property

Methods included from Contract::ValidatesWarning

#validates

Methods included from Schema

#schema

Methods included from Contract::Readonly

#options_for, #readonly?

Methods included from Contract::Validate

#errors, #validate, #validate!