Skip to content
This repository has been archived by the owner on Oct 20, 2020. It is now read-only.

Commit

Permalink
fix twitter_logout in Rails
Browse files Browse the repository at this point in the history
works around a laziness bug in ActionController::Session::AbstractStore::SessionHash
  • Loading branch information
mislav committed Jan 3, 2010
1 parent 5db7900 commit e98ca6c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion oauth_login.rb
Expand Up @@ -53,7 +53,10 @@ def twitter_user
end end


def twitter_logout def twitter_logout
[:oauth_consumer, :access_token, :twitter_user].each { |key| session.delete key } [:oauth_consumer, :access_token, :twitter_user].each do |key|
session[key] = nil # work around a Rails 2.3.5 bug
session.delete key
end
end end
end end


Expand Down

0 comments on commit e98ca6c

Please sign in to comment.