Sha256: c513c548f2e2412b2bd51e640639c3df72c448de0f348e37baffcefc6c6f0974

Contents?: true

Size: 513 Bytes

Versions: 1

Compression:

Stored size: 513 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_umeditor_rails/asset_installer"

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
baidu_umeditor_rails-0.0.1 lib/tasks/baidu_umeditor_rails_tasks.rake