diff options
-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 |