From 2cc0c5b031db28d7552797f4e98e6ca7c7e99d97 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Fri, 11 Oct 2024 17:44:23 -0700 Subject: [PATCH] Link pet states to outfit editor instead of their not-useful show page I was considering doing more with the show page at one point, but ehh, I think the outfit editor is the better place for that stuff anyway. --- app/helpers/pet_states_helper.rb | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app/helpers/pet_states_helper.rb b/app/helpers/pet_states_helper.rb index 86356599..48b6c126 100644 --- a/app/helpers/pet_states_helper.rb +++ b/app/helpers/pet_states_helper.rb @@ -26,11 +26,16 @@ module PetStatesHelper POSE_OPTIONS end - def useful_pet_state_path(...) + def useful_pet_state_path(pet_type, pet_state) if support_staff? - edit_pet_type_pet_state_path(...) + edit_pet_type_pet_state_path(pet_type, pet_state) else - pet_type_pet_state_path(...) + wardrobe_path( + color: pet_type.color_id, + species: pet_type.species_id, + pose: pet_state.pose, + state: pet_state.id, + ) end end end