Sha256: 1ebb9e5ba4e1741f7c200d2bb9e02e8d95782a1bbe9b3cbaed2f6499dfc52fd8
Contents?: true
Size: 971 Bytes
Versions: 5
Compression:
Stored size: 971 Bytes
Contents
require 'rails' module Ckeditor class Engine < ::Rails::Engine 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 end ActiveSupport.on_load :action_view do ActionView::Base.send :include, Ckeditor::Helpers::ViewHelper ActionView::Base.send :include, Ckeditor::Helpers::FormHelper ActionView::Helpers::FormBuilder.send :include, Ckeditor::Helpers::FormBuilder end end initializer "ckeditor.hooks" do if Object.const_defined?("Formtastic") ::Formtastic::SemanticFormBuilder.send :include, Ckeditor::Hooks::FormtasticBuilder end if Object.const_defined?("SimpleForm") ::SimpleForm::FormBuilder.send :include, Ckeditor::Hooks::SimpleFormBuilder end end end end
Version data entries
5 entries across 5 versions & 1 rubygems