Skip to content

Commit

Permalink
Possible fix for Tell Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
amree committed Aug 20, 2024
1 parent dec3c1e commit 4101a25
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/controllers/tell_managers_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4101a25

Please sign in to comment.