Class: Reform::Form

Inherits:
Contract show all
Includes:
MultiParameterAttributes, Validate, Save, Sync
Defined in:
lib/reform/form.rb,
lib/reform/form/virtual_attributes.rb

Defined Under Namespace

Modules: ActiveModel, ActiveRecord, Coercion, Composition, EmptyAttributesOptions, ReadonlyAttributesOptions, Validate

Instance Attribute Summary

Attributes inherited from Contract

#errors, #model

Instance Method Summary collapse

Methods included from Validate

#update!, #validate

Methods included from Contract::PropertyMethods

#collection, #properties, #property, #setup_form_definition

Methods included from Contract::Validate

#validate, #validate!

Methods included from Contract::Setup

#create_fields, #initialize, #setup_fields

Instance Method Details

#aliased_modelObject



10
11
12
13
# File 'lib/reform/form.rb', line 10

def aliased_model
  # TODO: cache the Expose.from class!
  Reform::Expose.from(mapper).new(:model => model)
end