Module: Mojito::Rendering::StatusCodes

Defined in:
lib/mojito/rendering/status_codes.rb

Instance Method Summary collapse

Instance Method Details

#redirect(target, status = 302) ⇒ Object



16
17
18
# File 'lib/mojito/rendering/status_codes.rb', line 16

def redirect(target, status = 302)
	response.redirect(target, status)
end

#redirect!(target, status = 302) ⇒ Object



20
21
22
23
# File 'lib/mojito/rendering/status_codes.rb', line 20

def redirect!(target, status = 302)
	redirect target, status
	halt!
end