Sha256: 5d6ddd224a23b2d75422d85b2ecbe121a4433f623635449643b5fc1f0addb6b4
Contents?: true
Size: 519 Bytes
Versions: 3
Compression:
Stored size: 519 Bytes
Contents
module Thesis class Engine < ::Rails::Engine # isolate_namespace Thesis # We're accessing the application controller, so we can't do this. initializer 'thesis.action_controller' do |app| require "thesis/controllers/controller_helpers" require "thesis/controllers/thesis_controller" ActiveSupport.on_load(:action_controller) do include ::Thesis::ControllerHelpers helper_method :current_page, :root_pages, :page_is_editable?, :thesis_editor end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
thesis-0.1.3 | lib/thesis/engine.rb |
thesis-0.1.1 | lib/thesis/engine.rb |
thesis-0.1.0 | lib/thesis/engine.rb |