diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-29 21:47:53 -0500 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-05-30 11:59:17 -0700 |
commit | 85eb3af873e3393416ff2c764c5590abc0538a64 (patch) | |
tree | 6f32794f0131e98d7292b030e729dbd57a67053c /activeresource | |
parent | 3962be5b8c20da54421ae472f06c741f0472fd46 (diff) | |
download | rails-85eb3af873e3393416ff2c764c5590abc0538a64.tar.gz rails-85eb3af873e3393416ff2c764c5590abc0538a64.tar.bz2 rails-85eb3af873e3393416ff2c764c5590abc0538a64.zip |
Tolerate missing logger
Diffstat (limited to 'activeresource')
-rw-r--r-- | activeresource/lib/active_resource/base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activeresource/lib/active_resource/base.rb b/activeresource/lib/active_resource/base.rb index 847cc600d5..11a7bbba3e 100644 --- a/activeresource/lib/active_resource/base.rb +++ b/activeresource/lib/active_resource/base.rb @@ -386,7 +386,7 @@ module ActiveResource end_code silence_warnings { instance_eval code, __FILE__, __LINE__ } rescue - logger.error "Couldn't set prefix: #{$!}\n #{code}" + logger.error "Couldn't set prefix: #{$!}\n #{code}" if logger raise end |