1
0
Fork 0
forked from OpenNeo/impress

Oops, fix recent bug in species:acara item search filter

Ah oops, I just typo'd this and didn't test it properly, womp womp!
This commit is contained in:
Emi Matchu 2024-01-23 05:31:09 -08:00
parent 413d2eed91
commit 48f613d9bc

View file

@ -61,7 +61,7 @@ class Item
when 'species' when 'species'
begin begin
species = Species.find_by_name!(value) species = Species.find_by_name!(value)
color = Color.find_by_name!('blue', 'en') color = Color.find_by_name!('blue')
pet_type = PetType.where(color_id: color.id, species_id: species.id).first! pet_type = PetType.where(color_id: color.id, species_id: species.id).first!
rescue ActiveRecord::RecordNotFound rescue ActiveRecord::RecordNotFound
message = I18n.translate('items.search.errors.not_found.species', message = I18n.translate('items.search.errors.not_found.species',