1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
Emi Matchu 540ce08caa Handle invalid Item state a bit better
Catch missing fields in validation before sending it to the DB, and
skip the Dyeworks stuff if the name is missing.

I ran into this looking into `test/trade_activity_test.rb`, which fails
right now because we try to create a boring placeholder item with
minimal fields, which Dyeworks can't call `name.match()` on!

Now, the test fails with a more helpful error about the item being
invalid. Next, I'll fix that!
2024-10-21 14:24:45 -07:00
..
fundraising
item
alt_style.rb
application_record.rb Upgrade to Rails 5.2.8.1 2023-10-23 19:05:05 -07:00
auth_record.rb
auth_user.rb
closet_hanger.rb
closet_list.rb
closet_visibility.rb
color.rb
contribution.rb Track contributions of Alt Styles 2024-01-24 03:54:43 -08:00
item.rb
item_outfit_relationship.rb
nc_mall_record.rb
neopets_connection.rb
neopets_page.rb
outfit.rb Add Customize More button back to item pages 2024-09-06 17:12:11 -07:00
parent_swf_asset_relationship.rb
pet.rb
pet_state.rb Use PetState#updated_at for the supported pose cache key, not latest ID 2024-10-07 17:56:42 -07:00
pet_type.rb
species.rb
swf_asset.rb
user.rb
zone.rb Remove unused logic for whether a zone is "sometimes" occupied 2024-08-31 13:16:47 -07:00