Sha256: 2ed3348019b948b4c45bc60e815535692ca4e23ffcaa924e0cb5624fbce6c3a3
Contents?: true
Size: 827 Bytes
Versions: 2
Compression:
Stored size: 827 Bytes
Contents
require 'ostruct' require 'reform/contract' require 'reform/composition' require 'reform/form/module' 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 require 'reform/form/scalar' extend Scalar::Property # experimental feature! end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reform-1.1.1 | lib/reform/form.rb |
reform-1.1.0 | lib/reform/form.rb |