Class: Lesli::ApplicationController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/lesli/application_controller.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeApplicationController

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_pathObject (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

#queryObject (readonly)

Returns the value of attribute query.



39
40
41
# File 'app/controllers/lesli/application_controller.rb', line 39

def query
  @query
end