Fixed: comparison of Array with Array failed

This commit is contained in:
Vokhmin Alexey V 2014-05-30 00:41:15 +04:00
parent 9e031b63cd
commit 2a050eb63d
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ module AbfWorker
end end
def sort_results_and_save(results, item = subject) 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) item.save(validate: false)
end end