mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-07 22:46:06 +00:00
9 lines
173 B
Ruby
9 lines
173 B
Ruby
# frozen_string_literal: true
|
|
|
|
# For the API
|
|
ActionController::Metal.class_eval do
|
|
def spree_current_user
|
|
@spree_current_user ||= request.env['warden'].user
|
|
end
|
|
end
|