lib/rails_config/railtie.rb in rails_config-0.1.7 vs lib/rails_config/railtie.rb in rails_config-0.1.8
- old
+ new
@@ -7,10 +7,10 @@
initializer = Rails.root.join("config", "initializers", "rails_config")
require initializer if File.exist?(initializer)
end
# Parse the settings before any of the initializers
- ActiveSupport.on_load :before_initialize, :yield => true do
+ ActiveSupport.on_load :before_configuration, :yield => true do
RailsConfig.load_and_set_settings(
Rails.root.join("config", "settings.yml").to_s,
Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s
)