Sha256: a6d932262f470c5e7dc4e8da54eb901c76012b429c9971de90e5d51a854a7b81

Contents?: true

Size: 520 Bytes

Versions: 5

Compression:

Stored size: 520 Bytes

Contents

module Pageflow
  module Admin
    module FormHelper
      # Using semantic_for_for directly causes Formtastic deprecation
      # warnings regarding `input_class_finder` and
      # `action_class_finder`. `active_admin_form_for` causes issues
      # in `erb` templates (see
      # https://github.com/activeadmin/activeadmin/issues/3916).
      def admin_form_for(resource, options = {}, &block)
        semantic_form_for(resource, options.merge(builder: ActiveAdmin::FormBuilder), &block)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pageflow-0.11.4 app/helpers/pageflow/admin/form_helper.rb
pageflow-0.11.3 app/helpers/pageflow/admin/form_helper.rb
pageflow-0.11.2 app/helpers/pageflow/admin/form_helper.rb
pageflow-0.11.1 app/helpers/pageflow/admin/form_helper.rb
pageflow-0.11.0 app/helpers/pageflow/admin/form_helper.rb