Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed sinatra example #login helper returning the wrong boolean

  • Loading branch information...
commit 30f733be689f719ad8bd81d46808cea6951db64f 1 parent 994e552
Jared Blitzstein authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 examples/sinatra.rb
View
4 examples/sinatra.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.