Sha256: ca44376b06fe4fe2683e853efd4df5992e50bba87b521897203cd1342e6c1689
Contents?: true
Size: 1.35 KB
Versions: 3
Compression:
Stored size: 1.35 KB
Contents
require 'rails' module Bastion class Engine < ::Rails::Engine isolate_namespace Bastion initializer 'bastion.assets_dispatcher', :before => :build_middleware_stack do |app| app.middleware.use ::ActionDispatch::Static, "#{Bastion::Engine.root}/app/assets/javascripts/bastion" end initializer 'bastion.mount_engine', :after => :build_middleware_stack do |app| app.routes_reloader.paths << "#{Bastion::Engine.root}/config/routes/mount_engine.rb" app.routes_reloader.paths.unshift("#{Bastion::Engine.root}/config/routes.rb") end initializer "bastion.assets.paths", :group => :all do |app| if defined? Less::Rails app.config.less.paths << "#{Bastion::Engine.root}/app/assets/stylesheets/bastion" app.config.less.paths << "#{Bastion::Engine.root}/vendor/assets/stylesheets/bastion" end app.middleware.use ::ActionDispatch::Static, "#{Bastion::Engine.root}/app/assets/javascripts/bastion" SETTINGS[:bastion] = {:assets => {}} if SETTINGS[:bastion].nil? SETTINGS[:bastion][:assets][:precompile] = [ 'bastion/bastion.css', 'bastion/bastion.js' ] end initializer "angular_templates", :group => :all do |app| app.config.angular_templates.ignore_prefix = '[bastion]*\/+' end rake_tasks do load "#{Bastion::Engine.root}/Rakefile" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bastion-0.1.9 | lib/bastion/engine.rb |
bastion-0.1.8 | lib/bastion/engine.rb |
bastion-0.1.7 | lib/bastion/engine.rb |