Re-enable pet loading, now that we're filtering out alt styles for now

This commit is contained in:
Emi Matchu 2024-01-24 01:00:25 -08:00
parent b0e7f2ccd5
commit b24ed7facb

View file

@ -5,7 +5,8 @@ class PetsController < ApplicationController
rescue_from Pet::AltStyleNotSupportedYet, with: :alt_style_not_supported_yet rescue_from Pet::AltStyleNotSupportedYet, with: :alt_style_not_supported_yet
def load 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] raise Pet::PetNotFound unless params[:name]
@pet = Pet.load( @pet = Pet.load(