devise-twitter icon indicating copy to clipboard operation
devise-twitter copied to clipboard

Not working with mongoid

Open aziz opened this issue 14 years ago • 4 comments

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 avatar Sep 16 '10 15:09 aziz

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.

aziz avatar Sep 16 '10 15:09 aziz

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

twmills avatar Sep 16 '10 16:09 twmills

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.

MSch avatar Sep 16 '10 20:09 MSch

Any updates?

devn avatar Oct 12 '10 21:10 devn