diff options
author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 14:39:24 -0300 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2018-10-31 15:46:36 -0300 |
commit | 01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e (patch) | |
tree | 1950593b9f18354a3dfeb0a1f76c99026bee498c /app/finders/pipelines_finder.rb | |
parent | fc892db6f02c992bef32bf994a694efd5205f61b (diff) | |
download | gitlab-ce-01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e.tar.gz |
Whitelist none method from ActiveRecord::Queryingda-rubocop-whitelist-active-record-none
Diffstat (limited to 'app/finders/pipelines_finder.rb')
-rw-r--r-- | app/finders/pipelines_finder.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/finders/pipelines_finder.rb b/app/finders/pipelines_finder.rb index 3d0d3219a94..35d0e1acce5 100644 --- a/app/finders/pipelines_finder.rb +++ b/app/finders/pipelines_finder.rb @@ -12,7 +12,6 @@ class PipelinesFinder @params = params end - # rubocop: disable CodeReuse/ActiveRecord def execute unless Ability.allowed?(current_user, :read_pipeline, project) return Ci::Pipeline.none @@ -28,7 +27,6 @@ class PipelinesFinder items = by_yaml_errors(items) sort_items(items) end - # rubocop: enable CodeReuse/ActiveRecord private |