class RackDispatch::RedirectDestination
Public Class Methods
new(path, status: 302)
click to toggle source
# File lib/rack_dispatch/redirect_destination.rb, line 3 def initialize(path, status: 302) @path = path @status = status end
Public Instance Methods
call(request, response)
click to toggle source
# File lib/rack_dispatch/redirect_destination.rb, line 8 def call(request, response) response.redirect(@path, @status) end