class ActionController::Metal
def self.call(env)
Makes the controller a rack endpoint that points to the action in
def self.call(env) action(env['action_dispatch.request.path_parameters'][:action]).call(env) end
def self.call(env) action(env['action_dispatch.request.path_parameters'][:action]).call(env) end