diff --git a/vendor/assets/images/Jcrop.gif b/assets/images/Jcrop.gif similarity index 100% rename from vendor/assets/images/Jcrop.gif rename to assets/images/Jcrop.gif diff --git a/vendor/assets/javascripts/.keep b/assets/javascripts/.keep similarity index 100% rename from vendor/assets/javascripts/.keep rename to assets/javascripts/.keep diff --git a/vendor/assets/javascripts/jquery.jcrop.js b/assets/javascripts/jquery.jcrop.js similarity index 100% rename from vendor/assets/javascripts/jquery.jcrop.js rename to assets/javascripts/jquery.jcrop.js diff --git a/vendor/assets/stylesheets/.keep b/assets/stylesheets/.keep similarity index 100% rename from vendor/assets/stylesheets/.keep rename to assets/stylesheets/.keep diff --git a/vendor/assets/stylesheets/jquery.jcrop.css b/assets/stylesheets/jquery.jcrop.css.erb similarity index 98% rename from vendor/assets/stylesheets/jquery.jcrop.css rename to assets/stylesheets/jquery.jcrop.css.erb index 95f8b9c..83e2931 100755 --- a/vendor/assets/stylesheets/jquery.jcrop.css +++ b/assets/stylesheets/jquery.jcrop.css.erb @@ -15,7 +15,7 @@ /* Selection Border */ .jcrop-vline, .jcrop-hline { - background: #ffffff url("Jcrop.gif"); + background: #ffffff url('<%= asset_path "Jcrop.gif" %>'); font-size: 0; position: absolute; } diff --git a/lib/carrierwave/crop/engine.rb b/lib/carrierwave/crop/engine.rb index c79adc7..6f04c2e 100644 --- a/lib/carrierwave/crop/engine.rb +++ b/lib/carrierwave/crop/engine.rb @@ -3,6 +3,12 @@ module CarrierWave module Crop class Engine < ::Rails::Engine + initializer 'bootstrap-sass.assets.precompile' do |app| + %w(stylesheets javascripts images).each do |sub| + app.config.assets.paths << root.join('assets', sub).to_s + end + #<<