lib/doorkeeper/oauth/client_credentials/creator.rb in doorkeeper-1.3.1 vs lib/doorkeeper/oauth/client_credentials/creator.rb in doorkeeper-1.4.0

- old
+ new

@@ -1,10 +1,10 @@ module Doorkeeper module OAuth class ClientCredentialsRequest class Creator def call(client, scopes, attributes = {}) - Doorkeeper::AccessToken.create(attributes.merge( + AccessToken.create(attributes.merge( application_id: client.id, scopes: scopes.to_s )) end end