Module: Reform

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

Defined Under Namespace

Classes: Composition, Contract, Expose, Form, Representer

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.rails3_0?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/reform.rb', line 4

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