Uninitialized constant Ruby Settings 1.9.3-p125

I updated mine .rvmrc

from ruby-1.9.2-p290

to ruby-1.9.3-p125

and outputuninitialized constant Settings

config/initializers/rails_config.rb

RailsConfig.setup do |config|  
  config.const_name = "Settings" 
end   

      

Any idea?

+3


source to share


2 answers


I got the same error when I ran the old code check on ruby ​​1.9.2 with ruby ​​1.9.3, updating the rails_config gem to the latest version fixed it for me.



bundle update --source rails_config

      

+3


source


You can try this:



ActiveSupport.on_load :before_configuration, :yield => true do
  RailsConfig.setup do |config|
    config.const_name = "Settings"
  end
end

      

+1


source







All Articles