Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Tolerate missing logger

  • Loading branch information...
commit 85eb3af873e3393416ff2c764c5590abc0538a64 1 parent 3962be5
@jeremy jeremy authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activeresource/lib/active_resource/base.rb
View
2  activeresource/lib/active_resource/base.rb
@@ -386,7 +386,7 @@ def prefix(options={}) "#{prefix_call}" end
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
Please sign in to comment.
Something went wrong with that request. Please try again.