Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed providerName attribute

  • Loading branch information...
commit 72f55b3b8f37528b70c8a8f8161a4ae1652e74b7 1 parent 60b7368
emkman authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/devise_rpx_connectable/model.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.