From 2878ee1f7d1d8a529bc36b7f8b32d75b65810134 Mon Sep 17 00:00:00 2001 From: Alex Reisner <alex@alexreisner.com> Date: Sat, 17 Sep 2011 10:20:40 -0400 Subject: [PATCH] Show that valid options are symbols (not strings). --- lib/geocoder.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/geocoder.rb b/lib/geocoder.rb index 778c12b9..5bce2283 100644 --- a/lib/geocoder.rb +++ b/lib/geocoder.rb @@ -106,7 +106,7 @@ module Geocoder klass = name.split("_").map{ |i| i[0...1].upcase + i[1..-1] }.join Geocoder::Lookup.const_get(klass).new else - valids = valid_lookups.join(", ") + valids = valid_lookups.map(&:inspect).join(", ") raise ConfigurationError, "Please specify a valid lookup for Geocoder " + "(#{name.inspect} is not one of: #{valids})." end -- GitLab