Module: Reform

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

Defined Under Namespace

Classes: Composition, Fields, Form, Representer

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.rails3_0?Boolean

Returns:

  • (Boolean)


287
288
289
# File 'lib/reform/form.rb', line 287

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