class Answers::Core::Engine

Public Class Methods

answers_inclusion!() click to toggle source

Performs the Answers inclusion process which extends the currently loaded Rails applications with Answers's controllers and helpers. The process is wrapped by a before_inclusion and after_inclusion step that calls procs registered by the Answers::Engine#before_inclusion and Answers::Engine#after_inclusion class methods

# File lib/answers/core/engine.rb, line 19
def answers_inclusion!
  before_inclusion_procs.each(&:call)

  #Answers.include_once(::ApplicationController, Answers::ApplicationController)
  #::ApplicationController.send :helper, Answers::Core::Engine.helpers

  after_inclusion_procs.each(&:call)
end
register_decorators!() click to toggle source

Register all decorators from app/decorators/ and registered plugins' paths.

# File lib/answers/core/engine.rb, line 11
def register_decorators!
  #Decorators.register! Rails.root, Answers::Plugins.registered.pathnames
end