Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Permits using rails_config in environment files again

  • Loading branch information...
commit 9857a2d8d5ea16c46a4df53b4285e2fc25045da3 1 parent e11c8bb
@masterkain masterkain authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rails_config/integration/rails.rb
View
4 lib/rails_config/integration/rails.rb
@@ -5,13 +5,13 @@ module Rails3
class Railtie < Rails::Railtie
# manually load the custom initializer before everything else
- initializer :load_custom_rails_config, :before => :bootstrap_hook do
+ initializer :load_custom_rails_config, :before => :load_environment_config do
initializer = Rails.root.join("config", "initializers", "rails_config.rb")
require initializer if File.exist?(initializer)
end
# Parse the settings before any of the initializers
- initializer :load_rails_config_settings, :after => :load_custom_rails_config, :before => :bootstrap_hook do
+ initializer :load_rails_config_settings, :after => :load_custom_rails_config, :before => :load_environment_config do
RailsConfig.load_and_set_settings(
Rails.root.join("config", "settings.yml").to_s,
Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
Please sign in to comment.
Something went wrong with that request. Please try again.