From 2a050eb63dc28af4f1b35feff28dc06e95fcbf89 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 30 May 2014 00:41:15 +0400 Subject: [PATCH] Fixed: comparison of Array with Array failed --- lib/abf_worker/base_observer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/abf_worker/base_observer.rb b/lib/abf_worker/base_observer.rb index 2e2b68d2f..79af23b49 100644 --- a/lib/abf_worker/base_observer.rb +++ b/lib/abf_worker/base_observer.rb @@ -34,7 +34,7 @@ module AbfWorker end def sort_results_and_save(results, item = subject) - item.results = results.sort_by{ |r| [r['timestamp'], r['file_name']] } + item.results = results.sort_by{ |r| [r['timestamp'].to_s, r['file_name'].to_s] } item.save(validate: false) end