Sha256: 8cb032c7ee9bded55703671e83c62e369c27d0b4d1fa924a3c58e57e5853268d

Contents?: true

Size: 352 Bytes

Versions: 13

Compression:

Stored size: 352 Bytes

Contents

require 'reform/form/active_model'
if defined?(ActiveRecord)
  require 'reform/form/active_record'
end

Reform::Form.class_eval do # DISCUSS: i'd prefer having a separate Rails module to be mixed into the Form but this is way more convenient for 99% users.
  include Reform::Form::ActiveModel
  include Reform::Form::ActiveModel::FormBuilderMethods
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
reform-1.0.4 lib/reform/rails.rb
reform-1.0.3 lib/reform/rails.rb
reform-1.0.2 lib/reform/rails.rb
reform-1.0.1 lib/reform/rails.rb
reform-1.0.0 lib/reform/rails.rb
reform-0.2.7 lib/reform/rails.rb
reform-0.2.6 lib/reform/rails.rb
reform-0.2.5 lib/reform/rails.rb
reform-0.2.4 lib/reform/rails.rb
reform-0.2.3 lib/reform/rails.rb
reform-0.2.2 lib/reform/rails.rb
reform-0.2.1 lib/reform/rails.rb
reform-0.2.0 lib/reform/rails.rb