Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-11-08 12:31:08 +0300
committerPhil Hughes <me@iamphill.com>2016-11-08 12:31:08 +0300
commitdd93079a05d49922fdbe4c221781f39ce69684e8 (patch)
treebeea14829cd33a38cef218862e29f18c9853d43d /app/helpers/todos_helper.rb
parent0bc9008ef62277094534711238894b4e43aca7b0 (diff)
Changed helper method to check for none on params
Moved if statements around in view
Diffstat (limited to 'app/helpers/todos_helper.rb')
-rw-r--r--app/helpers/todos_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/todos_helper.rb b/app/helpers/todos_helper.rb
index a75a03b16d2..09c69786791 100644
--- a/app/helpers/todos_helper.rb
+++ b/app/helpers/todos_helper.rb
@@ -62,7 +62,7 @@ module TodosHelper
end
def todos_filter_empty?
- todos_filter_params.all? {|key, value| value.nil?}
+ todos_filter_params.values.none?
end
def todos_filter_path(options = {})