diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-15 11:49:08 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-12-15 11:49:08 -0600 |
commit | 7c18518105e98ccfd89fe64194ede27824dfe8b3 (patch) | |
tree | 0ee5bd2949dc0014fba83bb5d5ebeaef86fab89f /activesupport/lib/active_support/deprecation.rb | |
parent | 38412ecb5daa1826574ad0f132d23dc2ef4288bf (diff) | |
download | rails-7c18518105e98ccfd89fe64194ede27824dfe8b3.tar.gz rails-7c18518105e98ccfd89fe64194ede27824dfe8b3.tar.bz2 rails-7c18518105e98ccfd89fe64194ede27824dfe8b3.zip |
Properly parenthasize calls to defined?(Rails) in 75fa82418 [#1563 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activesupport/lib/active_support/deprecation.rb')
-rw-r--r-- | activesupport/lib/active_support/deprecation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/deprecation.rb b/activesupport/lib/active_support/deprecation.rb index f18ea197a5..25b26e9c96 100644 --- a/activesupport/lib/active_support/deprecation.rb +++ b/activesupport/lib/active_support/deprecation.rb @@ -13,7 +13,7 @@ module ActiveSupport $stderr.puts callstack.join("\n ") if debug }, 'development' => Proc.new { |message, callstack| - logger = defined? Rails ? Rails.logger : Logger.new($stderr) + logger = defined?(Rails) ? Rails.logger : Logger.new($stderr) logger.warn message logger.debug callstack.join("\n ") if debug } |