module Login

Login is a Wire::App for forcing user logins @author Bryan T. Meyers

Public Class Methods

invoke(actions, context) click to toggle source

Proxy method used when routing @param [Array] actions the allowed actions for this URI @param [Hash] context the context for this request @return [Response] a redirect message returning to the previous page

# File lib/app/login.rb, line 25
def self.invoke(actions, context)
  [307, { 'Location' => context.referer.join('/') }, ['Login Redirect']]
end