human_power
human_power copied to clipboard
Rails Environment-specific Configuration
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'
Yes, try ::Rails
instead of Rails
.
I'll look into this.
Thanks.
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. :blush: