forked from OpenNeo/impress
Fix minor item search error message bug
Oops, I got the variable name wrong here! Before this change, `species:foo` would crash. Now, it shows the error message correctly.
This commit is contained in:
parent
d2de971a60
commit
3b59823fc4
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ class Item
|
||||||
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',
|
||||||
species_name: species_name.capitalize)
|
species_name: value.capitalize)
|
||||||
raise Item::Search::Error, message
|
raise Item::Search::Error, message
|
||||||
end
|
end
|
||||||
filters << (is_positive ?
|
filters << (is_positive ?
|
||||||
|
|
Loading…
Reference in a new issue