Sha256: cfb282755bda2ca8f107a5f5ee5b0d147690cdb4906d184295ed4f9be3218248
Contents?: true
Size: 568 Bytes
Versions: 4
Compression:
Stored size: 568 Bytes
Contents
module Locomotive::Steam module Middlewares # When rendering the page, the developer can stop it at anytime by # raising an RedirectionException exception. The exception message holds # the url we want the user to be redirected to. # This is specifically used by the authorize liquid tag. # class Redirection < ThreadSafe include Concerns::Helpers def _call begin self.next rescue Locomotive::Steam::RedirectionException => e redirect_to e.url, 302 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems