From 4101a25c8195f92b758e3a64ad9e2ff6ad4b7182 Mon Sep 17 00:00:00 2001 From: Amree Zaid Date: Sun, 18 Aug 2024 08:33:27 +0800 Subject: [PATCH] Possible fix for Tell Manager --- app/controllers/tell_managers_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/tell_managers_controller.rb b/app/controllers/tell_managers_controller.rb index ab322ae..58838e0 100644 --- a/app/controllers/tell_managers_controller.rb +++ b/app/controllers/tell_managers_controller.rb @@ -2,7 +2,9 @@ class TellManagersController < ApplicationController before_action :validate_cloudflare_turnstile, only: %i[create] def new - @coffee_shop = CoffeeShop.find_by(slug: params[:coffee_shop_id]) + @coffee_shop = + CoffeeShop.find_by(slug: params[:coffee_shop_id]) || + CoffeeShop.find(params[:coffee_shop_id]) @feedback = Feedback.new end