mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-10 23:07:47 +00:00
Fix env deprecated in Rails 5.0
I found it at the very bottom of the `test-consumer-features` CI build job. See: https://github.com/rails/rails/issues/23294.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# For the API
|
||||
ActionController::Metal.class_eval do
|
||||
def spree_current_user
|
||||
@spree_current_user ||= env['warden'].user
|
||||
@spree_current_user ||= request.env['warden'].user
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user