4 ms·
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
by purephase 13y ago
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.
- techscruggs 13y agoHe provides a more complete example on the github page: https://github.com/dhh/custom_configuration/ https://github.com/dhh/custom_configuration/
- stiff 13y agoI have written a configuration plug-in that I think is slightly better (for example allows local overwriting of the settings, not just per-environment): https://github.com/jaroslawr/dynamic_configuration https://github.com/jaroslawr/dynamic_configuration