class Rampart::RedirectEvent
Public Class Methods
new(url, status=302)
click to toggle source
# File lib/rampart/events/redirect_event.rb, line 5 def initialize(url, status=302) @url = url @status = status end
Public Instance Methods
halt?()
click to toggle source
# File lib/rampart/events/redirect_event.rb, line 10 def halt? true end
success?()
click to toggle source
# File lib/rampart/events/redirect_event.rb, line 14 def success? false end
to_truple()
click to toggle source
# File lib/rampart/events/redirect_event.rb, line 18 def to_truple response = Response.new response.write("Redirecting to: #{@url}") response.redirect(@url, @status) response.finish end