Permalink
Browse files

Merge pull request #21 from AlexanderPavlenko/fix-deprecated-path-api

deprecation warning on start
  • Loading branch information...
2 parents e514118 + f0e9065 commit 2e1c7d310c82ea559f0bba7c86a484ce4b075128 @astupka astupka committed Dec 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/central_logger/railtie.rb
View
2 lib/central_logger/railtie.rb
@@ -9,7 +9,7 @@ class Railtie < Rails::Railtie
initializer :initialize_central_logger, :before => :initialize_logger do
app_config = Rails.application.config
Rails.logger = config.logger = create_logger(app_config,
- app_config.paths.log.to_a.first)
+ ((app_config.paths['log'] rescue nil) || app_config.paths.log.to_a).first)
end
end
end

0 comments on commit 2e1c7d3

Please sign in to comment.