oops, dont include duplicate items in wardrobe after translating

This commit is contained in:
Emi Matchu 2013-01-28 17:02:33 -06:00
parent f484fc5c21
commit f59fa92aa1

View file

@ -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|