Sha256: a7d5f85fd59918d39fcf795f9b67a2a20a4d30f020be69e2f5f56adebe08690d
Contents?: true
Size: 478 Bytes
Versions: 2
Compression:
Stored size: 478 Bytes
Contents
module FormattedForm require 'formatted_form/engine' if defined?(Rails) require 'formatted_form/builder' module FormattedFormHelper def formatted_form_for(record_or_name_or_array, *args, &proc) options = args.extract_options! options.merge!(:builder => FormattedForm::Builder) (options[:html] ||= { }).merge!(:class => "#{options[:html][:class]} formatted") form_for(record_or_name_or_array, *(args << options), &proc) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
formatted_form-1.0.2 | lib/formatted_form.rb |
formatted_form-1.0.1 | lib/formatted_form.rb |