Sha256: c3c0978fc587e4b96ea93278ed00e9d29bbde10f2685f1c495858b31af148387

Contents?: true

Size: 670 Bytes

Versions: 1

Compression:

Stored size: 670 Bytes

Contents

require 'tb_core'

module SpudEvents
  class Engine < Rails::Engine
    engine_name :tb_events
    config.autoload_paths << "#{root}/lib"

    initializer :admin do
      TbCore.configure do |config|
        config.admin_applications += [{ name: 'Events', thumbnail: 'spud/admin/events_thumb.png', url: '/admin/events', order: 10 }]
      end
    end

    initializer :assets do |_config|
      TbCore.append_admin_stylesheets('admin/events/application')
      TbCore.append_admin_javascripts('admin/events/application')
    end

    initializer 'tb_events.assets' do
      Rails.application.config.assets.precompile += ['spud/admin/events_thumb.png']
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tb_events-1.3.0 lib/spud_events/engine.rb