sprockets-helper config fix

jamesperet 10 years ago
parent
commit
d04281e164
2 changed files with 2 additions and 4 deletions
  1. 1 2
      app/uploaders/cover_uploader.rb
  2. 1 2
      app/uploaders/file_uploader.rb

+ 1 - 2
app/uploaders/cover_uploader.rb

@@ -20,8 +20,7 @@ class CoverUploader < CarrierWave::Uploader::Base
20 20
   if Rails.env.production?
21 21
       # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: 
22 22
       # include Sprockets::Rails::Helper
23
-      include Sprockets::Helpers::RailsHelper  
24
-      include Sprockets::Helpers::IsolatedHelper  
23
+      include Sprockets::Helpers  
25 24
       storage :fog
26 25
   end
27 26
   

+ 1 - 2
app/uploaders/file_uploader.rb

@@ -19,8 +19,7 @@ class FileUploader < CarrierWave::Uploader::Base
19 19
   if Rails.env.production?
20 20
       # Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility if using fog: 
21 21
       # include Sprockets::Rails::Helper
22
-      include Sprockets::Helpers::RailsHelper  
23
-      include Sprockets::Helpers::IsolatedHelper      
22
+      include Sprockets::Helpers      
24 23
       storage :fog
25 24
   end
26 25