Class: PryRails::FindRoute

Inherits:
Pry::ClassCommand
  • Object
show all
Defined in:
lib/pry-rails/commands/find_route.rb

Instance Method Summary collapse

Instance Method Details

#process(controller) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/pry-rails/commands/find_route.rb', line 16

def process(controller)
  controller_string = controller.to_s
  if single_action?(controller_string)
    single_action(controller_string)
  else
    all_actions(controller_string)
  end
end