Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with mongoid #3

Open
aziz opened this issue Sep 16, 2010 · 4 comments
Open

Not working with mongoid #3

aziz opened this issue Sep 16, 2010 · 4 comments

Comments

@aziz
Copy link

aziz commented Sep 16, 2010

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
@aziz
Copy link
Author

aziz commented Sep 16, 2010

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.

@twmills
Copy link

twmills commented Sep 16, 2010

+1 for the callback options. The devise OAuth2 support has routes you can customize.

@MSch
Copy link
Owner

MSch commented Sep 16, 2010

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.

@devn
Copy link

devn commented Oct 12, 2010

Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants