Collection must be after load_data so that hubs are already available for VOs calculation

This commit is contained in:
Luis Ramos
2020-03-02 17:06:08 +00:00
parent 794fb5dfc5
commit 7e12142f91

View File

@@ -5,7 +5,7 @@ module Admin
include OpenFoodNetwork::SpreeApiKeyLoader
include EnterprisesHelper
before_filter :load_data
prepend_before_filter :load_data
before_filter :load_collection, only: [:bulk_update]
before_filter :load_spree_api_key, only: :index