module Cms module Fortress class Engine < ::Rails::Engine initializer 'cms-fortress.setup' do |app| app.config.to_prepare do Devise::SessionsController.layout "cms/fortress/session" ApplicationController.helper(Cms::Fortress::ApplicationHelper) end app.config.railties_order = [ :all, ComfortableMexicanSofa::Engine, Cms::Fortress::Engine ] ActiveSupport.on_load(:action_controller) do include Cms::Fortress::ApplicationControllerMethods end end end end end