You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to access Settings const name in config.rb right after Config.setup, but getting an error?
*/initializers/config.rb
Config.setupdo |config|
config.const_name='Settings'end# Following results in an error - uninitialized constant Settings (NameError)Settings.add_source!("#{Rails.root}/config/tune.yml")Settings.reload!
The text was updated successfully, but these errors were encountered:
Since this is 1.5 years old I'm assuming this is probably resolved by now, but FWIW @kapso, you could create a separate initializer to load the tune.yml sources. I think something like this should work:
I am trying to access
Settings
const name inconfig.rb
right afterConfig.setup
, but getting an error?*/initializers/config.rb
The text was updated successfully, but these errors were encountered: