devise-twitter
devise-twitter copied to clipboard
Not working with mongoid
I'm getting error because the gem is using an activerecotd specific find. I've changed it by a monkey patch like this. but it's better to use a general format of finder which is compatible with most of ORMs
def self.find_by_twitter_oauth_token_and_twitter_oauth_secret(*vals)
User.find(:first, :conditions => { :twitter_oauth_token => vals[0], :twitter_oauth_secret => vals[1] })
end
it would be nice if there was a callback to update user info based on user's twitter profile info after the sign up is complete. like updating Name, Avatar, bio, etc.
+1 for the callback options. The devise OAuth2 support has routes you can customize.
I just added callback options as a separate issue. I'll try to get it done till Monday.
jtoy just sent an awesome pull request that makes devise-twitter work with Mongoid and AR. I'm going to merge it tomorrow.
Any updates?