Skip to content

Commit

Permalink
Mongoid: fix incorrect foreign key client_id => oauth_client_id
Browse files Browse the repository at this point in the history
  • Loading branch information
burgalon committed Apr 6, 2012
1 parent 88ddb05 commit 9763777
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2/provider/models/mongoid/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module Behaviour

belongs_to(:client,
:class_name => OAuth2::Provider.client_class_name,
:foreign_key => :client_id
:foreign_key => :oauth_client_id
)

has_many(:access_tokens,
Expand Down

0 comments on commit 9763777

Please sign in to comment.