devise-omniauth-example icon indicating copy to clipboard operation
devise-omniauth-example copied to clipboard

Mongoid usage

Open jonjenkins opened this issue 14 years ago • 0 comments

I swear I had the user auth controller presented here working with Mongoid before despite this statement:

authentication = UserToken.find_by_provider_and_uid(omniauth['provider'], omniauth['uid'])

... but when I re-ran it last night (after a gem reinstall), the method failed. Perhaps something changed in my gem versioning since I wasn't explicit... I'm on 1.2.rc for Mongoid. I will re-write as a Mongoid query, but has anyone already implemented this using Mongo/Mongoid?

jonjenkins avatar Feb 09 '11 21:02 jonjenkins