Sha256: 5c00cb8519ef08d24ecada77636a875186e8944dafe0c57a01c7e6c5e740acf1

Contents?: true

Size: 539 Bytes

Versions: 3

Compression:

Stored size: 539 Bytes

Contents

module BaiduUeditorRails
  class Engine < ::Rails::Engine
    isolate_namespace BaiduUeditorRails
    initializer 'ckeditor.assets_precompile', group: :all do |app|
      app.config.assets.precompile += BaiduUeditorRails.assets
    end

    rake_tasks do
      load BaiduUeditorRails.root_path.join('lib/tasks/baidu_ueditor_rails_tasks.rake')

      if Rake::Task.task_defined?('assets:precompile')
        Rake::Task['assets:precompile'].enhance do
          Rake::Task['ueditor:nondigest'].invoke
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
baidu_ueditor_rails5-0.3.1 lib/baidu_ueditor_rails/engine.rb
baidu_ueditor_rails5-0.3.0 lib/baidu_ueditor_rails/engine.rb
baidu_ueditor_rails5-0.2.0 lib/baidu_ueditor_rails/engine.rb