Sha256: 55b611a2507262e4d5146a248707f3bc822c6c35498cfb8fb461617c05886625

Contents?: true

Size: 405 Bytes

Versions: 11

Compression:

Stored size: 405 Bytes

Contents

require 'reform/form/active_model'

require 'reform/active_record' if defined?(ActiveRecord)

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
  include Reform::Form::ActiveRecord if defined?(ActiveRecord)
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
reform-2.0.0.rc1 lib/reform/rails.rb
reform-2.0.0.beta2 lib/reform/rails.rb
reform-2.0.0.beta1 lib/reform/rails.rb
reform-1.2.6 lib/reform/rails.rb
reform-1.2.5 lib/reform/rails.rb
reform-1.2.4 lib/reform/rails.rb
reform-1.2.3 lib/reform/rails.rb
reform-1.2.2 lib/reform/rails.rb
reform-1.2.1 lib/reform/rails.rb
reform-1.2.0.beta2 lib/reform/rails.rb
reform-1.2.0.beta1 lib/reform/rails.rb