Sha256: 3504edea3a6f13f556eb591a052f14501983377ea77ddeb1662e59c08f82286d

Contents?: true

Size: 474 Bytes

Versions: 4

Compression:

Stored size: 474 Bytes

Contents

module TokenField
  class Engine < ::Rails::Engine
    isolate_namespace TokenField

    initializer "token_field" do
      ActionView::Helpers::FormBuilder.instance_eval do
        include TokenField::FormBuilder
      end
    end

    initializer "token_input" do
      require "token_field/simple_form/token_input" if defined?(SimpleForm)
    end

    initializer "token_field_test_helper" do
      require "token_field/capybara/dsl" if Rails.env.test?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
token_field-1.1.0 lib/token_field/engine.rb
token_field-1.0.1 lib/token_field/engine.rb
token_field-1.0.0 lib/token_field/engine.rb
token_field-0.0.3 lib/token_field/engine.rb