diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2018-11-30 20:21:08 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2018-11-30 20:21:08 +0100 |
commit | d8e816c02d61378e30ff5a2bb7c0b1e8f2ce98cc (patch) | |
tree | 352b3f0f1e8cc42afabbdc60f32872a34254b858 | |
parent | 05d5475264f0b666ef3e9ea0f29c0d3b42522d43 (diff) | |
download | refinerycms-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.rb | 6 |
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 |