From b24ed7facb21abae7433a433ade97bfd50bfac39 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Wed, 24 Jan 2024 01:00:25 -0800 Subject: [PATCH] Re-enable pet loading, now that we're filtering out alt styles for now --- app/controllers/pets_controller.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/pets_controller.rb b/app/controllers/pets_controller.rb index 5b3383fe..bff2de63 100644 --- a/app/controllers/pets_controller.rb +++ b/app/controllers/pets_controller.rb @@ -5,7 +5,8 @@ class PetsController < ApplicationController rescue_from Pet::AltStyleNotSupportedYet, with: :alt_style_not_supported_yet def load - return modeling_disabled unless user_signed_in? && current_user.admin? + # Uncomment this to temporarily disable modeling for most users. + # return modeling_disabled unless user_signed_in? && current_user.admin? raise Pet::PetNotFound unless params[:name] @pet = Pet.load(