summaryrefslogtreecommitdiff
path: root/lib/api/scope.rb
Commit message (Collapse)AuthorAgeFilesLines
* Enable frozen string in lib/api and lib/backupgfyoung2018-09-291-0/+2
| | | | | | | | | | Partially addresses #47424. Had to make changes to spec files because stubbing methods on frozen objects is a mess in RSpec and leads to failures: https://github.com/rspec/rspec-mocks/issues/1190
* `AccessTokenValidationService` accepts `String` or `API::Scope` scopes.Timothy Andrew2017-06-301-1/+1
| | | | | - There's no need to use `API::Scope` for scopes that don't have `if` conditions, such as in `lib/gitlab/auth.rb`.
* Extract a `Gitlab::Scope` class.Timothy Andrew2017-06-291-0/+23
- To represent an authorization scope, such as `api` or `read_user` - This is a better abstraction than the hash we were previously using.