about summary refs log tree commit diff stats
path: root/app/jobs
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2018-01-13 17:28:31 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2018-01-13 17:28:31 -0500
commit173effd7a9b847d156a5548e29ae7df67798c7a2 (patch)
treea1f3181973a54051a6191c1b7067b547818d4680 /app/jobs
parent7e4b9ea0c23eb660ab36a6114a7a3046d8f1c5f6 (diff)
downloadpokeviewer-173effd7a9b847d156a5548e29ae7df67798c7a2.tar.gz
pokeviewer-173effd7a9b847d156a5548e29ae7df67798c7a2.tar.bz2
pokeviewer-173effd7a9b847d156a5548e29ae7df67798c7a2.zip
Fixed incorrect icon eager loading bug on front page
A bug was causing a Vigoroth which had evolved into a Slaking to still show up as a Vigoroth on the front page of the engine, even though it showed up properly on its show page. This was deemed to be caused by eager loading.
Diffstat (limited to 'app/jobs')
-rw-r--r--app/jobs/pokeviewer/extract_save_data_job.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/jobs/pokeviewer/extract_save_data_job.rb b/app/jobs/pokeviewer/extract_save_data_job.rb index d1968af..b0999ef 100644 --- a/app/jobs/pokeviewer/extract_save_data_job.rb +++ b/app/jobs/pokeviewer/extract_save_data_job.rb
@@ -169,7 +169,7 @@ module Pokeviewer
169 rev.earth_ribbon = param.fetch "earthRibbon", false 169 rev.earth_ribbon = param.fetch "earthRibbon", false
170 rev.world_ribbon = param.fetch "worldRibbon", false 170 rev.world_ribbon = param.fetch "worldRibbon", false
171 171
172 if pk.revisions.empty? or rev.diff?(pk.revisions.last) 172 if pk.revisions.empty? or rev.diff?(pk.current)
173 rev.save! 173 rev.save!
174 end 174 end
175 end 175 end