mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
7 lines
134 B
Ruby
7 lines
134 B
Ruby
# For the API
|
|
ActionController::Metal.class_eval do
|
|
def spree_current_user
|
|
@spree_current_user ||= env['warden'].user
|
|
end
|
|
end
|