lib/doorkeeper-mongodb/mixins/mongoid/access_grant_mixin.rb
# Revokes AccessGrant records that have not been revoked and associated
# with the specific Application and Resource Owner.
#
# @param application_id [Integer]
#   ID of the Application
# @param resource_owner [Mongoid::Document, Integer]
#   instance of the Resource Owner model
#
Revokes AccessGrant records that have not been revoked and associated
with the specific Application and Resource Owner.
Revokes AccessGrant records that have not been revoked and associated with the specific Application and Resource Owner .
def revoke_all_for(application_id, resource_owner, clock = Time)
            by_resource_owner(resource_owner)
              .where(application_id: application_id, revoked_at: nil)
              .update_all(revoked_at: clock.now.utc)
          end
def revoke_all_for ( application_id , resource_owner , clock = Time ) by_resource_owner ( resource_owner ) . where ( application_id : application_id , revoked_at : nil ) . update_all ( revoked_at : clock . now . utc ) end
Revokes AccessGrant records that have not been revoked and associated
with the specific Application and Resource Owner.
Revokes AccessGrant records that have not been revoked and associated with the specific Application and Resource Owner .
application_id
ID of the Application
ID of the Application
resource_owner
instance of the Resource Owner model
instance of the Resource Owner model
clock
<not_specific>