diff options
author | Thong Kuah <tkuah@gitlab.com> | 2019-05-20 14:48:47 +1200 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2019-08-28 00:04:12 +1200 |
commit | 9ff86452b0c2f21c1f86cd1a14dde69c62d2ff65 (patch) | |
tree | 1d570e6be2d5a26c0017b769a0662ae03948cd26 /lib/api/entities.rb | |
parent | df3c259da67e7184ba8590a1ce55cc43a1247668 (diff) | |
download | gitlab-ce-59719-const-get-rubocop.tar.gz |
Address ConstGetInheritFalse violations59719-const-get-rubocop
There should be no cases where we need to inherit=true.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 5e66b4e76a5..4202c037707 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -978,7 +978,7 @@ module API expose :created_at def todo_target_class(target_type) - ::API::Entities.const_get(target_type) + ::API::Entities.const_get(target_type, false) end end |