From 3e4e4583fb751fb47013580ce86e2cc3a0e8353b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 26 Sep 2017 17:47:16 -0400 Subject: Added section on homepage for Pokémon not in any game MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/pokeviewer/pokemon.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models') diff --git a/app/models/pokeviewer/pokemon.rb b/app/models/pokeviewer/pokemon.rb index e493c66..7a1d088 100644 --- a/app/models/pokeviewer/pokemon.rb +++ b/app/models/pokeviewer/pokemon.rb @@ -102,7 +102,7 @@ module Pokeviewer end def outsider? - (ot_name != trainer.name) or (ot_number != trainer.number) + (trainer.nil?) or (ot_name != trainer.name) or (ot_number != trainer.number) end def location -- cgit 1.4.1