Sha256: 03dc4b607ca7fd341425074d21e36b4f8f573658affc6f210949c186a7e2c078

Contents?: true

Size: 743 Bytes

Versions: 2

Compression:

Stored size: 743 Bytes

Contents

require 'tb_core'
require 'paperclip'
require 'liquid'

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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tb_banners-1.1 lib/spud_banners/engine.rb
tb_banners-1.0.2 lib/spud_banners/engine.rb