#756: refactoring according to Alexander's comment
This commit is contained in:
parent
44663efa1f
commit
453d3cab19
|
@ -30,8 +30,7 @@ module AbfWorker
|
|||
sort_results_and_save results
|
||||
end
|
||||
|
||||
def sort_results_and_save(results, item = nil)
|
||||
item ||= subject
|
||||
def sort_results_and_save(results, item = subject)
|
||||
item.results = results.sort_by{ |r| r['file_name'] }
|
||||
item.save!
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue