You can do this already with code like this:
wepay_config = ActiveSupport::OrderedOptions.new
wepay_config.use_stage = false
Rails.application.config.wepay = wepay_config
Accessed through Rails.application.config.wepay.use_stage
This is how the Railties (like Active Support)
When I am writing a Rails application it kind of makes sense to have custom
configuration options. In Rails 4.2.5 I tried to add these to a config file
in the config directory for the environment that gets loaded but I get an
error:
/Users/bytenel/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.5/