aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2018-11-30 20:21:08 +0100
committerHarald Eilertsen <haraldei@anduin.net>2018-11-30 20:21:08 +0100
commitd8e816c02d61378e30ff5a2bb7c0b1e8f2ce98cc (patch)
tree352b3f0f1e8cc42afabbdc60f32872a34254b858
parent05d5475264f0b666ef3e9ea0f29c0d3b42522d43 (diff)
downloadrefinerycms-pc_banners-d8e816c02d61378e30ff5a2bb7c0b1e8f2ce98cc.tar.gz
refinerycms-pc_banners-d8e816c02d61378e30ff5a2bb7c0b1e8f2ce98cc.tar.bz2
refinerycms-pc_banners-d8e816c02d61378e30ff5a2bb7c0b1e8f2ce98cc.zip
Make sure assets will be precompiled.
-rw-r--r--lib/refinery/banners/engine.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/refinery/banners/engine.rb b/lib/refinery/banners/engine.rb
index 0299bb8..94c35ac 100644
--- a/lib/refinery/banners/engine.rb
+++ b/lib/refinery/banners/engine.rb
@@ -15,10 +15,14 @@ module Refinery
:class_name => :'refinery/banners/banner',
:title => 'name'
}
-
+
end
end
+ initializer "refinerycms_banners.assets.precompile" do |app|
+ app.config.assets.precompile += %w(banners.js jquery.tristate.js)
+ end
+
config.to_prepare do
require 'page_extensions'
Refinery::Page.send :include, Refinery::Banners::Extensions::Page