Methods
Class Public methods
new(route) Link
# File railties/lib/rails/commands/unused_routes/unused_routes_command.rb, line 13 def initialize(route) requirements = route.requirements @controller_name = requirements[:controller] @action_name = requirements[:action] @controller_class = (@controller_name.to_s.camelize + "Controller").safe_constantize end