Module Brakeman::RouteHelper
In: lib/brakeman/processors/lib/route_helper.rb

Methods

Public Instance methods

Add default routes minus :index

Add default routes

Add route to controller. If a controller is specified, the current controller will be set to that controller. If no controller is specified, uses current controller value.

Sets the controller name to a proper class name. For example

 self.current_controller = :session
 @controller == :SessionController #true

Also prepends the prefix if there is one set.

Manage Controller prefixes @prefix is an Array, but this method returns a string suitable for prefixing onto a controller name.

[Validate]