<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -89,6 +89,9 @@ module AuthlogicOauth
     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 &amp;&amp; !session_class.controller.params[:register_with_oauth].blank?) ||
         # When the oauth provider responds and we made the initial request</diff>
      <filename>lib/authlogic_oauth/acts_as_authentic.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>a6c2e8dd0701cca664b89573c24f2ead8e009b7d</id>
    </parent>
  </parents>
  <author>
    <name>Bodaniel Jeanes</name>
    <email>me@bjeanes.com</email>
  </author>
  <url>http://github.com/jrallison/authlogic_oauth/commit/541626973b317b75d3645fb5108d0006322adaf2</url>
  <id>541626973b317b75d3645fb5108d0006322adaf2</id>
  <committed-date>2009-10-20T20:39:49-07:00</committed-date>
  <authored-date>2009-10-20T20:32:30-07:00</authored-date>
  <message>Fixed an exception when trying to save models outside of the controller process (e.g. in IRB)</message>
  <tree>4646d7994d706ea420a1e799a876814fbb01848e</tree>
  <committer>
    <name>John Allison</name>
    <email>jrallison@gmail.com</email>
  </committer>
</commit>
