We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is there any way to have different configurations for different Rails environments?
if Rails.env.production? disallow :none else disallow :all end
Error:
NoMethodError (undefined method `env' for HumanPower::Rails:Module): config/robots.rb:1:in `block in robots' lib/silverpop_middleware.rb:13:in `call' lib/health_check_middleware.rb:10:in `call'
The text was updated successfully, but these errors were encountered:
Yes, try ::Rails instead of Rails.
::Rails
Rails
I'll look into this.
Thanks.
Sorry, something went wrong.
I guess it's not a bug Since you are supposed to use :: if you want top level constant
::
@lassebunk Close or fix?_?
This will be fixed. It's unintentional, so it's kind of a bug. 😊
No branches or pull requests
Is there any way to have different configurations for different Rails environments?
Error:
The text was updated successfully, but these errors were encountered: