Sha256: bbe7d6cc6a6cb8164a2eadde0842f258547a3db34dfddb548b1777679768a2cd

Contents?: true

Size: 499 Bytes

Versions: 2

Compression:

Stored size: 499 Bytes

Contents

module Manage

  module FormHelper
    include SimpleForm::ActionViewExtensions::FormHelper

    OPTIONS = {
      wrapper: :foundation,
    }

    def manage_form_for(record, options={}, &block)
      simple_form_for(record, options.merge(Manage::FormHelper::OPTIONS), &block)
    end

    def manage_fields_for(record_name, record_object = nil, options = {}, &block)
      simple_fields_for(record_name, record_object = nil, options.merge(Manage::FormHelper::OPTIONS), &block)
    end

  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
manage-1.3.1 app/helpers/manage/form_helper.rb
manage-1.3.0 app/helpers/manage/form_helper.rb