lib/spud_banners/engine.rb in tb_banners-1.2.0 vs lib/spud_banners/engine.rb in tb_banners-1.2.1

- old
+ new

@@ -4,22 +4,29 @@ module Spud module Banners class Engine < Rails::Engine engine_name :tb_banners - Spud::Core.append_admin_stylesheets('admin/banners/application') - Spud::Core.append_admin_javascripts('admin/banners/application') + initializer :admin do Spud::Core.config.admin_applications += [{ :name => 'Banner Sets', :thumbnail => 'admin/banners/banners.png', :retina => true, :url => '/admin/banner_sets', :order => 120 }] end + initializer :liquid do Liquid::Template.register_tag('spud_banner_set', Spud::Banners::BannerSetTag) if defined?(Liquid::Template) end + + initializer 'tb_banners.assets' do + Spud::Core.append_admin_stylesheets('admin/banners/application') + Spud::Core.append_admin_javascripts('admin/banners/application') + Rails.application.config.assets.precompile += ['admin/banners/banners.png'] + end + end end end