Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

reformat back helper method

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  • Loading branch information...
commit 03b6a8bcd012df4382031290168c4c11d59c0475 1 parent e8d0a13
@schmidt schmidt authored rkh committed
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/sinatra/base.rb
View
5 lib/sinatra/base.rb
@@ -378,8 +378,9 @@ def etag(value, kind=:strong)
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

2 comments on commit 03b6a8b

@kyledrake

What was the purpose of this? Is there a style convention being used I'm not aware of?

@rkh
Owner

All surrounding helper methods, even the one liners, are formatted that way.

Please sign in to comment.
Something went wrong with that request. Please try again.