Re-enable pet loading, now that we're filtering out alt styles for now
This commit is contained in:
parent
b0e7f2ccd5
commit
b24ed7facb
1 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue