Sha256: b43e10ce146c29bb37bbb30714de8dbf0a4caa7940b9bed734a4a8224ca89e9f

Contents?: true

Size: 663 Bytes

Versions: 3

Compression:

Stored size: 663 Bytes

Contents

module EffectiveFormInputs
  class Engine < ::Rails::Engine
    engine_name 'effective_form_inputs'

    config.autoload_paths += Dir[
      "#{config.root}/lib/validators/",
      "#{config.root}/lib/effective_form_inputs/inputs",

    ]

    config.eager_load_paths += Dir[
      "#{config.root}/lib/validators/",
      "#{config.root}/lib/effective_form_inputs/inputs",
    ]

    initializer 'effective_form_inputs.action_view' do |app|
      Rails.application.config.to_prepare do
        ActiveSupport.on_load :action_view do
          ActionView::Helpers::FormBuilder.send(:include, ::Effective::FormBuilderInputs)
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
effective_form_inputs-1.5.0 lib/effective_form_inputs/engine.rb
effective_form_inputs-1.4.1 lib/effective_form_inputs/engine.rb
effective_form_inputs-1.4.0 lib/effective_form_inputs/engine.rb