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.4"

Class Method Summary collapse

Class Method Details

.rails3_0?Boolean

Returns:

  • (Boolean)


296
297
298
# File 'lib/reform/form.rb', line 296

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