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