Maybe https://github.com/railsjedi/rails_config or similar will help?