Re:Beyond the default Rails environments
by purephase on Thursday June 13, 2013 @09:49AM
(#5873994)
The custom configuration part of that is the most interesting. Sadly, we have a lot of Rails.env.production? scattered everywhere. I'm not sure I understand the examples DHH provided though.
[ Parent
| on HN ]
Re:Beyond the default Rails environments
by techscruggs on Thursday June 13, 2013 @09:56AM
(#5874017)
He provides a more complete example on the github page: https://github.com/dhh/custom_configuration/
I have written a configuration plug-in that I think is slightly better (for example allows local overwriting of the settings, not just per-environment):