1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Tolerate missing logger

This commit is contained in:
Jeremy Kemper 2009-05-29 21:47:53 -05:00
parent 3962be5b8c
commit 85eb3af873

View file

@ -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