Sha256: c8cbd72691a0ca9d3bd2dcf623f5a9d373069e6e478c36b719beba3f54871dac
Contents?: true
Size: 410 Bytes
Versions: 2
Compression:
Stored size: 410 Bytes
Contents
require 'reform/form/active_model' require 'reform/form/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reform-1.1.1 | lib/reform/rails.rb |
reform-1.1.0 | lib/reform/rails.rb |