Sha256: 370e7b0f9b92d03364d62961e75fd6c7f2db3aa21093cf11e87d50d829866e77

Contents?: true

Size: 585 Bytes

Versions: 4

Compression:

Stored size: 585 Bytes

Contents

module UeditorRails
  class Engine < ::Rails::Engine
    isolate_namespace UeditorRails

    initializer "ueditor_rails.assets_precompile", :group => :all do |app|
      app.config.assets.precompile += UeditorRails.assets
    end

    initializer "ueditor_rails.helpers" do
      ActiveSupport.on_load :action_view do
        ActionView::Base.send :include, UeditorRails::Helpers::ViewHelper
        ActionView::Base.send :include, UeditorRails::Helpers::FormHelper
        ActionView::Helpers::FormBuilder.send :include, UeditorRails::Helpers::FormBuilder
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
ueditor_rails4-0.0.5 lib/ueditor_rails/engine.rb
ueditor_rails-0.0.4 lib/ueditor_rails/engine.rb
ueditor_rails-0.0.2 lib/ueditor_rails/engine.rb
ueditor_rails-0.0.1 lib/ueditor_rails/engine.rb