Sha256: 205399382d038e8623db28545b71dea5cc480071e938d3b6789be853e334a9a3

Contents?: true

Size: 510 Bytes

Versions: 10

Compression:

Stored size: 510 Bytes

Contents

# desc "Explaining what the task does"
# task :baidu_ueditor_rails do
#   # Task goes here
# end
assets_task = Rake::Task.task_defined?('assets:precompile:primary') ? 'assets:precompile:primary' : 'assets:precompile'

Rake::Task[assets_task].enhance do
  require "baidu_ueditor_rails/asset_installer"

  config   = Rails.application.config
  target   = File.join(Rails.public_path, config.assets.prefix)
  manifest = config.assets.manifest

  BaiduUeditorRails::AssetInstaller.new(target, manifest).install
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
baidu_ueditor_rails-0.2.3 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.2.2 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.2.1 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.2.0 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.1.0 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.0.5 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.0.4 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.0.3 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.0.2 lib/tasks/baidu_ueditor_rails_tasks.rake
baidu_ueditor_rails-0.0.1 lib/tasks/baidu_ueditor_rails_tasks.rake