diff options
| author | Timothy Andrew <mail@timothyandrew.net> | 2017-06-26 04:14:10 +0000 |
|---|---|---|
| committer | Timothy Andrew <mail@timothyandrew.net> | 2017-06-28 07:17:13 +0000 |
| commit | c1fcd730cc9dbee5b41ce2a6a12f8d84416b1a4a (patch) | |
| tree | b3ae8410df1ef28e724ae04a3bb9445f3720f44c /lib/api/projects.rb | |
| parent | 4dbfa14e160e0d9bca11941adcf04b3d272aa1a2 (diff) | |
| download | gitlab-ce-c1fcd730cc9dbee5b41ce2a6a12f8d84416b1a4a.tar.gz | |
Implement review comments from @DouweM for !12300.
- Use a struct for scopes, so we can call `scope.if` instead of `scope[:if]`
- Refactor the "remove scopes whose :if condition returns false" logic to use a
`select` rather than a `reject`.
Diffstat (limited to 'lib/api/projects.rb')
0 files changed, 0 insertions, 0 deletions
