class ActionController::Metal

def controller_name

Delegates to the class's ::controller_name.
def controller_name
  self.class.controller_name
end