tsechingho / ckeditor-rails

Integrate CKEditor javascript library with Rails asset pipeline
https://github.com/tsechingho/ckeditor-rails
MIT License
214 stars 133 forks source link

Turbo Sprockets + Overrides + Heroku Don't Play Nice #50

Closed HoyaBoya closed 10 years ago

HoyaBoya commented 10 years ago

Using the ckeditor/override per the instructions to get asset hashes breaks when we use turbo sprockets. The override.js.erb isn't happy with calls to asset_path. If I remove turbo sprockets, it works, but then we get two sweeps of asset:precompile which takes forever.

       rake aborted!
       /tmp/build_df42e508-d471-4b83-a109-1006bcee772b/vendor/bundle/ruby/2.1.0/bundler/gems/ckeditor-fd8e29ee5036/app/assets/javascripts/ckeditor/init.js.erb has already been required
       (in /tmp/build_df42e508-d471-4b83-a109-1006bcee772b/vendor/bundle/ruby/2.1.0/bundler/gems/ckeditor-fd8e29ee5036/app/assets/javascripts/ckeditor/override.js.erb)