Sha256: 776916b7f1f9166eb5ee6b4b49cfb2b50cab6fd8fc6616f381bfd4fa9809c739
Contents?: true
Size: 647 Bytes
Versions: 6
Compression:
Stored size: 647 Bytes
Contents
module Coprl module Presenters module Rails class Engine < ::Rails::Engine config.before_configuration do # load our engine from the rails-engine directory config.root = File.join(root,'rails-engine') end initializer 'coprl_presenters.middleware' do |app| # adds the public directory to the middleware so that the bundle.css and bundle.js are picked up # TODO: should rename these since they are common names that are likely going to collide app.middleware.use ::ActionDispatch::Static, File.join(root, '..', 'public') end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems