@@ -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 |
|
@@ -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 |
|
@@ -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 |
|