mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-06 07:29:16 +00:00
Use ams_prefix not ams_suffix!
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
angular.module("admin.enterprises").controller 'enterprisesCtrl', ($scope, $q, Enterprises, Columns) ->
|
||||
requests = []
|
||||
requests.push ($scope.allEnterprises = Enterprises.index(ams_suffix: "index")).$promise
|
||||
requests.push ($scope.allEnterprises = Enterprises.index(ams_prefix: "index")).$promise
|
||||
|
||||
$q.all(requests).then ->
|
||||
$scope.loaded = true
|
||||
|
||||
@@ -15,7 +15,7 @@ module Admin
|
||||
respond_to do |format|
|
||||
format.html
|
||||
format.json do
|
||||
render_as_json @collection, ams_prefix: params[:ams_suffix], current_user: spree_current_user
|
||||
render_as_json @collection, ams_prefix: params[:ams_prefix], current_user: spree_current_user
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -163,5 +163,9 @@ module Admin
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def ams_prefix_whitelist
|
||||
[:basic]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user