Class: Lesli::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Lesli::ApplicationController
- Defined in:
- app/controllers/lesli/application_controller.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#engine_path ⇒ Object
readonly
Returns the value of attribute engine_path.
-
#query ⇒ Object
readonly
Returns the value of attribute query.
Instance Method Summary collapse
-
#initialize ⇒ ApplicationController
constructor
A new instance of ApplicationController.
Constructor Details
#initialize ⇒ ApplicationController
Returns a new instance of ApplicationController.
42 43 44 45 46 47 |
# File 'app/controllers/lesli/application_controller.rb', line 42 def initialize super @lesli = { engine_name: self.class.module_parent.name } end |
Instance Attribute Details
#engine_path ⇒ Object (readonly)
Returns the value of attribute engine_path.
40 41 42 |
# File 'app/controllers/lesli/application_controller.rb', line 40 def engine_path @engine_path end |
#query ⇒ Object (readonly)
Returns the value of attribute query.
39 40 41 |
# File 'app/controllers/lesli/application_controller.rb', line 39 def query @query end |