Class Brakeman::ControllerAliasProcessor
In: lib/brakeman/processors/controller_alias_processor.rb
Parent: Brakeman::AliasProcessor

Processes aliasing in controllers, but includes following renders in routes and putting variables into templates

Methods

Included Modules

Brakeman::RenderHelper

Public Class methods

If only_method is specified, only that method will be processed, other methods will be skipped. This is for rescanning just a single action.

Public Instance methods

Get list of filters, including those that are inherited

Finds a method in the given class or a parent class

Returns nil if the method could not be found.

If found, returns hash table with controller name and method sexp.

Determines default layout name

Processes a call to a before filter. Basically, adds any instance variable assignments to the environment. TODO: method arguments?

Look for calls to head()

Skip it, must be an inner class

Processes the default template for the current action

Processes a method definition, which may include processing any rendered templates.

Check for respond_to

Process modules mixed into the controller, in case they contain actions.

Process template and add the current class and method name as called_from info

Returns true if the given method name is also a route

Turns a method name into a template name

[Validate]