From 5778bdd4f7c38f1bf05e890bda1dc6643d7a5955 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 16 Feb 2013 13:03:54 +0000 Subject: [PATCH] replace tabs to spaces at app/helpers/timelog_helper.rb git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11406 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/helpers/timelog_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/timelog_helper.rb b/app/helpers/timelog_helper.rb index 224ff2f44..cc4fbff47 100644 --- a/app/helpers/timelog_helper.rb +++ b/app/helpers/timelog_helper.rb @@ -56,10 +56,10 @@ module TimelogHelper end def select_hours(data, criteria, value) - if value.to_s.empty? - data.select {|row| row[criteria].blank? } + if value.to_s.empty? + data.select {|row| row[criteria].blank? } else - data.select {|row| row[criteria].to_s == value.to_s} + data.select {|row| row[criteria].to_s == value.to_s} end end