mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Remove resource_scoping to make things more simple
This commit is contained in:
@@ -18,10 +18,8 @@ module ControllerHacks
|
||||
end
|
||||
|
||||
def api_process(action, params = {}, session = nil, flash = nil, method = "get")
|
||||
scoping = respond_to?(:resource_scoping) ? resource_scoping : {}
|
||||
process(action,
|
||||
params.
|
||||
merge(scoping).
|
||||
reverse_merge!(use_route: :spree, format: :json),
|
||||
session,
|
||||
flash,
|
||||
|
||||
Reference in New Issue
Block a user