Permalink
Browse files

Fixed sinatra example #login helper returning the wrong boolean

  • Loading branch information...
1 parent 994e552 commit 30f733be689f719ad8bd81d46808cea6951db64f Jared Blitzstein committed Apr 19, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/sinatra.rb
View
@@ -7,7 +7,7 @@
helpers do
def login?
- session[:atoken].nil?
+ !session[:atoken].nil?
end
def profile
@@ -74,4 +74,4 @@ def linkedin_client
-connections.all.each do |c|
%div= "#{c.first_name} #{c.last_name} - #{c.headline}"
-else
- %a{:href => "/auth"} Login using LinkedIn
+ %a{:href => "/auth"} Login using LinkedIn

0 comments on commit 30f733b

Please sign in to comment.