Sha256: d38cf3b796ffbd9c5eb36fd093a372068976a3e52661bbf4e0b98ed71d1e9ce7
Contents?: true
Size: 711 Bytes
Versions: 3
Compression:
Stored size: 711 Bytes
Contents
require 'ostruct' require 'reform/contract' require 'reform/composition' module Reform class Form < Contract self.representer_class = Reform::Representer.for(:form_class => self) 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. private def aliased_model # TODO: cache the Expose.from class! Reform::Expose.from(mapper).new(:model => model) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reform-1.0.4 | lib/reform/form.rb |
reform-1.0.3 | lib/reform/form.rb |
reform-1.0.2 | lib/reform/form.rb |