Sha256: 27ee3628e46d8fa5a80adfaba8e7ed14670b4ae090df386f20ed482fdb21d3ba

Contents?: true

Size: 396 Bytes

Versions: 22

Compression:

Stored size: 396 Bytes

Contents

module Trix
  class Engine < ::Rails::Engine
    initializer 'trix.view_helpers' do
      ActiveSupport.on_load(:action_view) do
        require 'trix/form'
      end

      if defined? ::SimpleForm
        require 'trix/simple_form/trix_editor_input'

        ::SimpleForm.setup do |config|
          config.custom_inputs_namespaces << 'Trix::SimpleForm'
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 4 rubygems

Version Path
trix-0.11.1 lib/trix/engine.rb
trix-0.11.0 lib/trix/engine.rb