mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
I found it at the very bottom of the `test-consumer-features` CI build job. See: https://github.com/rails/rails/issues/23294.
7 lines
142 B
Ruby
7 lines
142 B
Ruby
# For the API
|
|
ActionController::Metal.class_eval do
|
|
def spree_current_user
|
|
@spree_current_user ||= request.env['warden'].user
|
|
end
|
|
end
|