Skip to content
Snippets Groups Projects
Commit 2878ee1f authored by Alex Reisner's avatar Alex Reisner
Browse files

Show that valid options are symbols (not strings).

parent b0756a08
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,7 @@ module Geocoder ...@@ -106,7 +106,7 @@ module Geocoder
klass = name.split("_").map{ |i| i[0...1].upcase + i[1..-1] }.join klass = name.split("_").map{ |i| i[0...1].upcase + i[1..-1] }.join
Geocoder::Lookup.const_get(klass).new Geocoder::Lookup.const_get(klass).new
else else
valids = valid_lookups.join(", ") valids = valid_lookups.map(&:inspect).join(", ")
raise ConfigurationError, "Please specify a valid lookup for Geocoder " + raise ConfigurationError, "Please specify a valid lookup for Geocoder " +
"(#{name.inspect} is not one of: #{valids})." "(#{name.inspect} is not one of: #{valids})."
end end
......
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