Sha256: c128bccb9dca586e0079627f67ad0654d8e42a1b5f6defa9c6481ab1b2667131

Contents?: true

Size: 858 Bytes

Versions: 1

Compression:

Stored size: 858 Bytes

Contents

require 'tb_core'

module Spud
	module Events
		 class Engine < Rails::Engine
			engine_name :spud_events

			def self.require_model(model_name)
        require "#{root}/app/models/#{model_name}"
      end

      def self.require_controller(controller_name)
        require "#{root}/app/controllers/#{controller_name}"
      end
			initializer :admin do
				Spud::Core.configure do |config|
				  config.admin_applications += [{:name => "Events", :thumbnail => "spud/admin/events_thumb.png", :url => "/spud/admin/events",:order => 10}]
				end
			end
			initializer :assets do |config|
        Spud::Core.append_admin_javascripts('spud/admin/events')
        Spud::Core.append_admin_stylesheets('spud/admin/events')

				Rails.application.config.assets.precompile += [
          "spud/events.*",
          "spud/admin/events.*"
				]
			 end
		 end
	end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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