summaryrefslogtreecommitdiff
path: root/app/helpers/issuables_helper.rb
diff options
context:
space:
mode:
authorHeinrich Lee Yu <hleeyu@gmail.com>2018-11-19 19:59:08 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2018-11-19 23:58:35 +0800
commit801fc90c1285876b2028d6026529cb0ba9eaa8db (patch)
treeae9054d467c291b74120fbb0d820e35b78cb85b5 /app/helpers/issuables_helper.rb
parent263849f6c22742fa0ed8908e909b0b1b60b4c387 (diff)
downloadgitlab-ce-801fc90c1285876b2028d6026529cb0ba9eaa8db.tar.gz
Refactor to use updated params in finder
Diffstat (limited to 'app/helpers/issuables_helper.rb')
-rw-r--r--app/helpers/issuables_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/issuables_helper.rb b/app/helpers/issuables_helper.rb
index 6069640b9c8..dfa86f52e40 100644
--- a/app/helpers/issuables_helper.rb
+++ b/app/helpers/issuables_helper.rb
@@ -362,6 +362,10 @@ module IssuablesHelper
end
end
+ def has_filter_bar_param?
+ finder.class.scalar_params.any? { |p| params[p].present? }
+ end
+
private
def sidebar_gutter_collapsed?