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.
This commit is contained in:
parent
381a892af8
commit
2cc0c5b031
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue