pelle / oauth-plugin

Rails plugin for OAuth
http://stakeventures.com/articles/2009/07/21/consuming-oauth-intelligently-in-rails
MIT License
717 stars 217 forks source link

Fixes user creation with two fixes #122

Closed bnickel closed 4 years ago

bnickel commented 12 years ago
  1. Validation occurs before before_create. To ensure create_user is called, it has to be done on before_validation.
  2. create_user threw an error because User.new wasn't assigned to anything. After that, user.save would set self.user to true.