Sha256: 7f9807d747b76e4a9872353eaf20549872e12d22c7421775f8be11ecb10c3e41

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

module FormattedForm::Helper
  
  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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
formatted_form-1.1.0 lib/formatted_form/helper.rb