diff options
Diffstat (limited to 'app/jobs')
-rw-r--r-- | app/jobs/pokeviewer/extract_save_data_job.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index 404716a..3409a5f 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb | |||
@@ -22,6 +22,12 @@ module Pokeviewer | |||
22 | end | 22 | end |
23 | end | 23 | end |
24 | 24 | ||
25 | args["boxes"].each_with_index do |box_name,index| | ||
26 | box = Box.find_or_initialize_by(trainer: game, number: index) | ||
27 | box.name = box_name | ||
28 | box.save! | ||
29 | end | ||
30 | |||
25 | game.pokemon.clear | 31 | game.pokemon.clear |
26 | 32 | ||
27 | args["pokemon"].each do |param| | 33 | args["pokemon"].each do |param| |