Sha256: 49cce7ef4d115db3814503cda2e3612af2a2f4599c001bf937e42e1fb59e3cd1

Contents?: true

Size: 700 Bytes

Versions: 3

Compression:

Stored size: 700 Bytes

Contents

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)

          Cms::ContentController.send(:include, Cms::Fortress::ContentRenderer)
          Cms::Page.send(:include, Cms::Fortress::PageMethods)

        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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cms-fortress-1.0.2 lib/cms/fortress/rails/engine.rb
cms-fortress-1.0.1 lib/cms/fortress/rails/engine.rb
cms-fortress-1.0.0 lib/cms/fortress/rails/engine.rb