Sha256: 8762141a84db15252f64dc5cc63788f023227c499f39af16a4be7c0f4006d85a
Contents?: true
Size: 701 Bytes
Versions: 2
Compression:
Stored size: 701 Bytes
Contents
require 'ostruct' require 'reform/contract' require 'reform/composition' module Reform class Form < Contract self.representer_class = Reform::Representer.for(:form_class => self) def aliased_model # TODO: cache the Expose.from class! Reform::Expose.from(mapper).new(:model => model) end require "reform/form/virtual_attributes" require 'reform/form/validate' include Validate # extend Contract#validate with additional behaviour. require 'reform/form/sync' include Sync require 'reform/form/save' include Save require 'reform/form/multi_parameter_attributes' include MultiParameterAttributes # TODO: make features dynamic. end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reform-1.0.1 | lib/reform/form.rb |
reform-1.0.0 | lib/reform/form.rb |