Permalink
Browse files

reformat back helper method

Signed-off-by: Konstantin Haase <konstantin.mailinglists@googlemail.com>
  • Loading branch information...
schmidt authored and rkh committed Feb 24, 2011
1 parent e8d0a13 commit 03b6a8bcd012df4382031290168c4c11d59c0475
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/sinatra/base.rb
View
@@ -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

This comment has been minimized.

Show comment
Hide comment
@kyledrake

kyledrake Feb 25, 2011

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

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

@rkh

This comment has been minimized.

Show comment
Hide comment
@rkh

rkh Feb 26, 2011

Member

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

Member

rkh replied Feb 26, 2011

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

Please sign in to comment.