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