Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from ffloyd/upstream
Browse files Browse the repository at this point in the history
Precompiling assets. Fixes #5
  • Loading branch information
PerfectlyNormal committed Aug 20, 2012
2 parents a366bf3 + cee537e commit 1da0ba7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/tasks/tinymce-uploadimage-assets.rake
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Rake::Task['assets:precompile:primary'].enhance do
assets = File.expand_path(File.dirname(__FILE__) + "/../../vendor/assets/javascripts/tinymce")
target = File.join(Rails.public_path, Rails.application.config.assets.prefix)

mkdir_p target
cp_r assets, target
end
3 changes: 3 additions & 0 deletions lib/tinymce-rails-imageupload/rails.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ module Tinymce
module Rails
module Imageupload
class Engine < ::Rails::Engine
initializer 'TinymceRailsImageupload.assets_pipeline' do |app|
app.config.assets.precompile << "tinymce/plugins/uploadimage/editor_plugin.js"
end
end
end
end
Expand Down

0 comments on commit 1da0ba7

Please sign in to comment.