Sha256: e795d00e334afa8149097d9f90536ac4ab6f89c66d4c3996aa7d359efd4361a9

Contents?: true

Size: 360 Bytes

Versions: 2

Compression:

Stored size: 360 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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
token_field-2.0.0 lib/token_field/engine.rb
token_field-0.0.2 lib/token_field/engine.rb