lib/trix/engine.rb in trix-0.10.2 vs lib/trix/engine.rb in trix-0.11.0

- old
+ new

@@ -2,8 +2,16 @@ 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