ecm_pictures 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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