Commit graph

9 commits

Author SHA1 Message Date
GitLab Bot
cb2494484e Add latest changes from gitlab-org/gitlab@master 2022-05-11 00:08:02 +00:00
GitLab Bot
99373ac711 Add latest changes from gitlab-org/gitlab@master 2021-11-04 15:10:58 +00:00
GitLab Bot
3b9468e8b9 Add latest changes from gitlab-org/gitlab@master 2021-09-17 15:11:44 +00:00
gfyoung
73322a0e55 Enable frozen string in app/controllers/**/*.rb
Enables frozen string for the following:

* app/controllers/*.rb
* app/controllers/admin/**/*.rb
* app/controllers/boards/**/*.rb
* app/controllers/ci/**/*.rb
* app/controllers/concerns/**/*.rb

Partially addresses #47424.
2018-09-18 21:22:45 -07:00
Lin Jen-Shin
6a4ee9aa71 Allow simple ivar ||= form. Update accordingly 2017-09-19 01:29:32 +08:00
Lin Jen-Shin
9ae92b8caa Add cop to make sure we don't use ivar in a module 2017-09-18 21:23:45 +08:00
Douglas Barbosa Alexandre
34ed74fab9 Avoid use of Hash#dig to keep compatibility with Ruby 2.1 2016-12-16 19:59:53 -02:00
Timothy Andrew
4d6da770de Implement minor changes from @dbalexandre's review.
- Mainly whitespace changes.

- Require the migration adding the `scope` column to the
  `personal_access_tokens` table to have downtime, since API calls will
  fail if the new code is in place, but the migration hasn't run.

- Minor refactoring - load `@scopes` in a `before_action`, since we're
  doing it in three different places.
2016-12-16 16:29:31 +05:30
Timothy Andrew
6c809dfae8 Allow creating personal access tokens / OAuth applications with scopes. 2016-12-16 15:08:10 +05:30