class AbstractController::Base
def action_method?(name)
* `name` - The name of an action to be tested
#### Parameters
defined in the controller.
Returns true if the name can be considered an action because it has a method
def action_method?(name) self.class.action_methods.include?(name) end