Skip to content

Commit

Permalink
can't user #any? anywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Jul 5, 2012
1 parent 85d1dbd commit 5bdbc47
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/warden-github/strategy.rb
Expand Up @@ -7,7 +7,8 @@ def params

def authenticate!
if(params['code'] && params['state'] &&
env['rack.session']['github_oauth_state'].any? &&
env['rack.session']['github_oauth_state'] &&
env['rack.session']['github_oauth_state'].size > 0 &&
params['state'] == env['rack.session']['github_oauth_state'])
begin
api = api_for(params['code'])
Expand Down
2 changes: 1 addition & 1 deletion lib/warden-github/version.rb
@@ -1,5 +1,5 @@
module Warden
module Github
VERSION = "0.8.1"
VERSION = "0.8.2"
end
end

0 comments on commit 5bdbc47

Please sign in to comment.