lib/ckeditor/engine.rb in ckeditor-3.6.3 vs lib/ckeditor/engine.rb in ckeditor-3.7.0.rc1

- old
+ new

@@ -1,9 +1,12 @@ require 'rails' +require 'ckeditor' module Ckeditor class Engine < ::Rails::Engine + isolate_namespace Ckeditor + config.action_view.javascript_expansions[:ckeditor] = "ckeditor/ckeditor" initializer "ckeditor.helpers" do ActiveSupport.on_load(:action_controller) do ActionController::Base.send :include, Ckeditor::Helpers::Controllers @@ -16,10 +19,10 @@ end end initializer "ckeditor.hooks" do if Object.const_defined?("Formtastic") - ::Formtastic::SemanticFormBuilder.send :include, Ckeditor::Hooks::FormtasticBuilder + require "ckeditor/hooks/formtastic" end if Object.const_defined?("SimpleForm") ::SimpleForm::FormBuilder.send :include, Ckeditor::Hooks::SimpleFormBuilder end