mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Use find_by_id instead of find in EnterpriseController
This commit is contained in:
@@ -42,7 +42,7 @@ class EnterprisesController < BaseController
|
||||
private
|
||||
|
||||
def set_enterprise
|
||||
@enterprise = Enterprise.find(params[:id])
|
||||
@enterprise = Enterprise.find_by_id(params[:id])
|
||||
end
|
||||
|
||||
def clean_permalink
|
||||
|
||||
Reference in New Issue
Block a user