Permalink
Browse files

Fixed providerName attribute

  • Loading branch information...
emkman
emkman committed Mar 15, 2012
1 parent 60b7368 commit 72f55b3b8f37528b70c8a8f8161a4ae1652e74b7
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/devise_rpx_connectable/model.rb
@@ -37,7 +37,7 @@ def store_rpx_credentials!(attributes = {})
self.skip_confirmation! if self.respond_to?(:skip_confirmation!)
# Only populate +email+ field if it's available (e.g. if +authenticable+ module is used).
- self.email = attributes[:email] || "#{attributes[:provider]}_#{attributes[:username]}" if self.respond_to?(:email)
+ self.email = attributes[:email] || "#{attributes[:providerName]}_#{attributes[:username]}" if self.respond_to?(:email)
# Lazy hack: These database fields are required if +authenticable+/+confirmable+
# module(s) is used. Could be avoided with :null => true for authenticatable

0 comments on commit 72f55b3

Please sign in to comment.