Closed agibralter closed 14 years ago
@agibralter -
You might want to take a look at, and add a vote for http://github.com/jrallison/authlogic_oauth/issues#issue/2 , as it is the same issue that you've noted. As it were, it also includes a monkeypatch that you can dump in #{RAILS_ROOT}/lib and then load either in your console or your environment.rb
Granted, it appears that this issue has been fixed in a recent commit. If you're still having trouble, you might try grabbing the latest-n-greatest.
Ah cool, thank you! I'll close this ticket now.
I need to be able to interact with my User class outside of the Rails request (e.g. in script/console or in rake tasks). When I try to save my user
authenticating_with_oauth?
causes an exception becausesession_class.controller
is nil (authlogic is not activated). Perhapsauthenticating_with_oauth?
could be wrapped withif session_class.controller
?