From f59fa92aa114ea6fb59072fb0671971da47366e1 Mon Sep 17 00:00:00 2001 From: Matchu Date: Mon, 28 Jan 2013 17:02:33 -0600 Subject: [PATCH] oops, dont include duplicate items in wardrobe after translating --- app/models/pet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/pet.rb b/app/models/pet.rb index eb3c26c1..b30ec08c 100644 --- a/app/models/pet.rb +++ b/app/models/pet.rb @@ -122,7 +122,7 @@ class Pet < ActiveRecord::Base end # Apply translations, and figure out what items are currently being worn - current_items = [] + current_items = Set.new registries.each do |locale, registry| I18n.with_locale(locale) do registry.each do |item_id, item_info|