Skip to content
Snippets Groups Projects
Commit dc935489 authored by Costa Shapiro's avatar Costa Shapiro
Browse files

Whatever happened to duck typing? Trying to bring compatibility with Rails.

parent 3c07a161
No related branches found
No related tags found
No related merge requests found
......@@ -24,7 +24,7 @@ module Geocoder
if logger == :kernel
kernel_log(level, message)
elsif logger.kind_of? ::Logger
elsif logger.respond_to? :add
logger.add(SEVERITY[level], message)
else
raise Geocoder::ConfigurationError, "Please specify valid logger for Geocoder. " +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment