module Doorkeeper::Models::Scopes

def includes_scope?(*required_scopes)

def includes_scope?(*required_scopes)
  required_scopes.blank? || required_scopes.any? { |scope| scopes.exists?(scope.to_s) }
end