Merge pull request #12780 from dacook/optimise-12714

Optimise subscriptions admin
This commit is contained in:
Gaetan Craig-Riou
2024-08-21 09:50:27 +10:00
committed by GitHub
3 changed files with 9 additions and 2 deletions

View File

@@ -42,7 +42,7 @@ module OpenFoodNetwork
end
def distributor
Enterprise.find params[:distributor_id]
@distributor ||= Enterprise.find params[:distributor_id]
end
def scope_to_schedule