Module: Reform

Defined in:
lib/reform/composition.rb,
lib/reform.rb,
lib/reform/form.rb,
lib/reform/twin.rb,
lib/reform/schema.rb,
lib/reform/version.rb,
lib/reform/contract.rb,
lib/reform/form/json.rb,
lib/reform/representer.rb,
lib/reform/contract/setup.rb

Overview

TODO: replace that with lazy Twin and Composition from Disposable.

Defined Under Namespace

Modules: Schema, Twin Classes: Composition, Contract, Expose, Form, Representer

Constant Summary collapse

VERSION =
"1.2.6"

Class Method Summary collapse

Class Method Details

.rails3_0?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/reform.rb', line 2

def self.rails3_0?
  ::ActiveModel::VERSION::MAJOR == 3 and ::ActiveModel::VERSION::MINOR == 0
end