ecm_pictures 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/ecm/pictures/engine.rb +7 -0
- data/lib/ecm/pictures/version.rb +1 -1
- metadata +1 -1
data/lib/ecm/pictures/engine.rb
CHANGED
@@ -15,6 +15,13 @@ module Ecm
|
|
15
15
|
class Engine < Rails::Engine
|
16
16
|
paths["config/locales"] << File.dirname(__FILE__) + '/../../../config/locales'
|
17
17
|
|
18
|
+
# Enabling assets precompiling under rails 3.1 or greater
|
19
|
+
if Rails.version >= '3.1'
|
20
|
+
initializer :assets do |config|
|
21
|
+
Rails.application.config.assets.precompile += %w( ecm_pictures.js ecm_pictures.css orangebox/*.png orangebox/*.gif )
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
18
25
|
config.to_prepare do
|
19
26
|
ApplicationController.helper(Ecm::PicturesHelper)
|
20
27
|
end
|
data/lib/ecm/pictures/version.rb
CHANGED