Sha256: 502ae81bfaf0f487d4413d0b963d64757a7124f6e8db7c1bc6f51258a317c8d4

Contents?: true

Size: 601 Bytes

Versions: 10

Compression:

Stored size: 601 Bytes

Contents

require "reform/form/active_model"
require "reform/form/active_model/validations"

require "reform/active_record" if defined?(ActiveRecord)
require "reform/mongoid" if defined?(Mongoid)

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
reform-2.1.0 lib/reform/rails.rb
reform-2.1.0.rc1 lib/reform/rails.rb
reform-2.0.5 lib/reform/rails.rb
reform-2.0.4 lib/reform/rails.rb
reform-2.0.3 lib/reform/rails.rb
reform-2.0.2 lib/reform/rails.rb
reform-2.0.1 lib/reform/rails.rb
reform-2.0.0 lib/reform/rails.rb
reform-2.0.0.rc3 lib/reform/rails.rb
reform-2.0.0.rc2 lib/reform/rails.rb