Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed an exception when trying to save models outside of the controll…

…er process (e.g. in IRB)
  • Loading branch information...
commit 541626973b317b75d3645fb5108d0006322adaf2 1 parent a6c2e8d
@bjeanes bjeanes authored committed
Showing with 3 additions and 0 deletions.
  1. +3 −0  lib/authlogic_oauth/acts_as_authentic.rb
View
3  lib/authlogic_oauth/acts_as_authentic.rb
@@ -89,6 +89,9 @@ def oauth_secret=(value)
private
def authenticating_with_oauth?
+ # Controller isn't available in all contexts (e.g. irb)
+ return false unless session_class.controller
+
# Initial request when user presses one of the button helpers
(session_class.controller.params && !session_class.controller.params[:register_with_oauth].blank?) ||
# When the oauth provider responds and we made the initial request

2 comments on commit 5416269

@ravicious

IMHO it's time to release a new version (1.0.9?).

@xnutsive

Yep it is.

Please sign in to comment.
Something went wrong with that request. Please try again.