method

new

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: RouteInfo
new(route) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.