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

Raise exception if no JSON parser found.

parent ab6f5823
No related branches found
No related tags found
No related merge requests found
......@@ -75,6 +75,9 @@ module Geocoder
end
elsif defined?(ActiveSupport::JSON)
ActiveSupport::JSON.decode(raw_data)
else
raise Geocoder::Error, "No JSON-parsing library found. " +
"Please install either the 'json' or 'activesupport' gem."
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