Sha256: 0b256eaaddc6bea528ad76f34d3e6051b59ae8ea71ad2c4e1d2e6f7a3a7846cd
Contents?: true
Size: 633 Bytes
Versions: 11
Compression:
Stored size: 633 Bytes
Contents
module Teabag class Engine < ::Rails::Engine isolate_namespace Teabag initializer :assets, :group => :all do |app| # default the root if it's not set Teabag.configuration.root ||= app.root # append the asset paths from the configuration Teabag.configuration.asset_paths.each do |path| app.config.assets.paths << Teabag.configuration.root.join(path).to_s end end config.after_initialize do |app| # prepend routes so a catchall doesn't get in the way app.routes.prepend do mount Teabag::Engine => Teabag.configuration.mount_at end end end end
Version data entries
11 entries across 11 versions & 1 rubygems