ecm_pictures 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ecm/pictures/engine.rb +6 -2
- data/lib/ecm/pictures/version.rb +1 -1
- metadata +1 -1
data/lib/ecm/pictures/engine.rb
CHANGED
@@ -17,8 +17,12 @@ module Ecm
|
|
17
17
|
|
18
18
|
# Enabling assets precompiling under rails 3.1 or greater
|
19
19
|
if Rails.version >= '3.1'
|
20
|
-
initializer :assets do |config|
|
21
|
-
Rails.application.config.assets.precompile += %w( ecm_pictures.js ecm_pictures.css
|
20
|
+
# initializer :assets do |config|
|
21
|
+
# Rails.application.config.assets.precompile += %w( ecm_pictures.js ecm_pictures.css )
|
22
|
+
# end
|
23
|
+
initializer "ecm_pictures.asset_pipeline" do |app|
|
24
|
+
app.config.assets.precompile << 'ecm_pictures.js'
|
25
|
+
app.config.assets.precompile << 'ecm_pictures.css'
|
22
26
|
end
|
23
27
|
end
|
24
28
|
|
data/lib/ecm/pictures/version.rb
CHANGED