You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello,
I got this error (undefined local variable or method 'env') in production when trying to get the states for a country in the stock location form. It comes from the metal_decorator.rb in this extension.
I solved it by using request.env['warden'].user instead of just env['warden'].user but I don't really know why this happens, so a bit of insight would be appreciated.
Also, this is only necessary in production, development mode worked fine without this change.
The text was updated successfully, but these errors were encountered:
Hello,
I got this error (
undefined local variable or method 'env'
) in production when trying to get the states for a country in the stock location form. It comes from the metal_decorator.rb in this extension.I solved it by using
request.env['warden'].user
instead of justenv['warden'].user
but I don't really know why this happens, so a bit of insight would be appreciated.Also, this is only necessary in production, development mode worked fine without this change.
The text was updated successfully, but these errors were encountered: