lib/app-config/railtie.rb in yappconfig-0.2.0 vs lib/app-config/railtie.rb in yappconfig-0.3.0
- old
+ new
@@ -1,10 +1,9 @@
require 'rails'
module AppConfig
class Railtie < Rails::Railtie
-
- initializer "app-config.configure_for_rails" do
+ config.before_configuration do
AppConfig.configure do |config|
config.config_file = Rails.root.join("config", "config.yml")
config.environment = Rails.env
config.auto_reload = true if Rails.env == "development"
end