Source: show
# File app/models/db/authorization_grant.rb, line 9 def allows?(*scopes) scopes = [scopes].join(",").split(",") (self.scopes.gsub(/\s+/, "").split(",") & scopes).length > 0 end