reformat back helper method

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
This commit is contained in:
Gregor Schmidt 2011-02-24 12:32:25 +01:00 committed by Konstantin Haase
parent e8d0a13682
commit 03b6a8bcd0
1 changed files with 3 additions and 2 deletions

View File

@ -378,8 +378,9 @@ module Sinatra
end
## Sugar for redirect (example: redirect back)
def back ; request.referer ; end
def back
request.referer
end
end
# Template rendering methods. Each method takes the name of a template