Sha256: 76e126b68883391c268a616b5e668c3fefc64bf40cfda9800e1b1bde110db737

Contents?: true

Size: 730 Bytes

Versions: 19

Compression:

Stored size: 730 Bytes

Contents

require "event_calendar"
require "rails"

module EventCalendar
  class Engine < Rails::Engine
    ASSET_PREFIX = "event_calendar"
    ENGINEER_VERSION = "0.2.3"

    initializer "event_calendar.require_dependencies" do
      require 'bundler'
      gemfile = Bundler::Definition.build(root.join('Gemfile'), root.join('Gemfile.lock'), {})
      specs = gemfile.dependencies.select do |d|
        d.name != 'engineer' and (d.groups & [:default, :production]).any?
      end

      specs.collect { |s| s.autorequire || [s.name] }.flatten.each do |r|
        require r
      end
    end

    initializer "event_calendar.asset_path" do |app|
      app.config.middleware.use ::ActionDispatch::Static, "#{root}/public"
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
event_calendar_engine-0.2.6 lib/event_calendar/engine.rb
event_calendar_engine-0.2.5 lib/event_calendar/engine.rb
event_calendar_engine-0.2.4 lib/event_calendar/engine.rb
event_calendar_engine-0.2.3 lib/event_calendar/engine.rb
event_calendar_engine-0.2.2 lib/event_calendar/engine.rb
event_calendar_engine-0.2.1 lib/event_calendar/engine.rb
event_calendar_engine-0.2.0 lib/event_calendar/engine.rb
event_calendar_engine-0.1.11 lib/event_calendar/engine.rb
event_calendar_engine-0.1.10 lib/event_calendar/engine.rb
event_calendar_engine-0.1.9 lib/event_calendar/engine.rb
event_calendar_engine-0.1.8 lib/event_calendar/engine.rb
event_calendar_engine-0.1.7 lib/event_calendar/engine.rb
event_calendar_engine-0.1.6 lib/event_calendar/engine.rb
event_calendar_engine-0.1.5 lib/event_calendar/engine.rb
event_calendar_engine-0.1.4 lib/event_calendar/engine.rb
event_calendar_engine-0.1.3 lib/event_calendar/engine.rb
event_calendar_engine-0.1.2 lib/event_calendar/engine.rb
event_calendar_engine-0.1.1 lib/event_calendar/engine.rb
event_calendar_engine-0.1.0 lib/event_calendar/engine.rb