Sha256: 6c25f8dd8cdd221294a93b43cb7ed7006d2ea5c9fdb6db069df03c2ff8a96c57
Contents?: true
Size: 570 Bytes
Versions: 1
Compression:
Stored size: 570 Bytes
Contents
module Apitome class Engine < ::Rails::Engine isolate_namespace Apitome config.assets.precompile += %w( apitome/*.css apitome/*.js ) initializer :assets, group: :all do |app| # default the root if it's not set Apitome.configuration.root ||= app.root end config.after_initialize do |app| # prepend routes so a catchall doesn't get in the way if Apitome.configuration.mount_at.present? app.routes.prepend do mount Apitome::Engine => Apitome.configuration.mount_at end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apitome-0.0.8 | lib/apitome/engine.rb |