lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.3.8 vs lib/authlogic_connect/oauth/user.rb in authlogic-connect-0.0.3.9
- old
+ new
@@ -46,10 +46,10 @@
# this is called after we get the callback url and we are saving the user
# to the database.
# it is called by the validation chain.
def complete_oauth_transaction
unless create_oauth_token
- self.errors.add(:tokens, "you have already created an account using your #{oauth_token.service_name} account, so it")
+ self.errors.add(:tokens, "you have already created an account using your #{token_class.service_name} account, so it")
end
end
def create_oauth_token
token = token_class.new(oauth_token_and_secret)