sprockets fix again

jamesperet лет %!s(int64=10): %!d(string=назад)
Родитель
Сommit
00fbc2fdbe
3 измененных файлов с 6 добавлено и 6 удалено
  1. 3 3
      app/uploaders/avatar_uploader.rb
  2. 2 2
      app/uploaders/cover_uploader.rb
  3. 1 1
      app/uploaders/file_uploader.rb

+ 3 - 3
app/uploaders/avatar_uploader.rb

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

+ 2 - 2
app/uploaders/cover_uploader.rb

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

+ 1 - 1
app/uploaders/file_uploader.rb

@@ -19,8 +19,8 @@ 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::Helpers::RailsHelper  
22
-      include Sprockets::Helpers::IsolatedHelper
23 22
       include Sprockets::Rails::Helper
23
+      include Sprockets::Helpers::IsolatedHelper      
24 24
       storage :fog
25 25
   end
26 26