diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-11-01 02:05:06 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-11-01 02:05:06 +0300 |
commit | 31733b6fc5a9ba4443a5dd279e787e2fd8e31c6d (patch) | |
tree | 03cf9e7bafeb4d3d013a80c9d5ceef7396b7f06d /app/finders/issuable_finder.rb | |
parent | 59d4a6d81cb745c154928d4ad43ab0278da6bc94 (diff) | |
parent | 01d8c1f6f0dacbb8d4779d0226e1c02eb11dfe0e (diff) |
Merge branch 'da-rubocop-whitelist-active-record-none' into 'master'
Whitelist none method from ActiveRecord::Querying
See merge request gitlab-org/gitlab-ce!22726
Diffstat (limited to 'app/finders/issuable_finder.rb')
-rw-r--r-- | app/finders/issuable_finder.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/finders/issuable_finder.rb b/app/finders/issuable_finder.rb index eb3d2498830..92aaa9c6b29 100644 --- a/app/finders/issuable_finder.rb +++ b/app/finders/issuable_finder.rb @@ -196,7 +196,6 @@ class IssuableFinder milestones? && params[:milestone_title] == Milestone::None.title end - # rubocop: disable CodeReuse/ActiveRecord def milestones return @milestones if defined?(@milestones) @@ -217,7 +216,6 @@ class IssuableFinder Milestone.none end end - # rubocop: enable CodeReuse/ActiveRecord def labels? params[:label_name].present? @@ -227,7 +225,6 @@ class IssuableFinder labels? && params[:label_name].include?(Label::None.title) end - # rubocop: disable CodeReuse/ActiveRecord def labels return @labels if defined?(@labels) @@ -238,7 +235,6 @@ class IssuableFinder Label.none end end - # rubocop: enable CodeReuse/ActiveRecord def assignee_id? params[:assignee_id].present? |