From 164aa47e577d9dc2536f96229c8f533e827bca2d Mon Sep 17 00:00:00 2001 From: Rolf Schmidt Date: Thu, 6 Jul 2017 13:47:33 +0200 Subject: [PATCH] Tidied. --- app/controllers/time_accountings_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/time_accountings_controller.rb b/app/controllers/time_accountings_controller.rb index 69268dc2d..e258217a7 100644 --- a/app/controllers/time_accountings_controller.rb +++ b/app/controllers/time_accountings_controller.rb @@ -164,9 +164,9 @@ class TimeAccountingsController < ApplicationController ] result = [] results.each { |row| - row[:ticket].keys.each{|field| + row[:ticket].keys.each { |field| next if row[:ticket][field].blank? - next if !row[:ticket][field].kind_of?(ActiveSupport::TimeWithZone) + next if !row[:ticket][field].is_a?(ActiveSupport::TimeWithZone) row[:ticket][field] = row[:ticket][field].iso8601 }