Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `env' in production #400

Closed
Dethon opened this issue Nov 3, 2017 · 1 comment
Closed

undefined local variable or method `env' in production #400

Dethon opened this issue Nov 3, 2017 · 1 comment

Comments

@Dethon
Copy link

Dethon commented Nov 3, 2017

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.

@GarPit
Copy link

GarPit commented Nov 9, 2017

+1. The same for me. @DethonUSAL, thanks for workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants