Class: Releaf::Root::DefaultControllerResolver

Inherits:
Object
  • Object
show all
Includes:
Service
Defined in:
lib/releaf/root/default_controller_resolver.rb

Instance Method Summary collapse

Instance Method Details

#callObject


6
7
8
# File 'lib/releaf/root/default_controller_resolver.rb', line 6

def call
  Releaf.application.config.controllers[controllers.first].path if controllers.first
end

#controllersObject


10
11
12
# File 'lib/releaf/root/default_controller_resolver.rb', line 10

def controllers
  Releaf.application.config.available_controllers
end