Skip to content
Snippets Groups Projects
Commit 2b9aaae8 authored by James McCarthy's avatar James McCarthy
Browse files

Removed use of eval from Lookups::Base#result_class.


Signed-off-by: default avatarJames McCarthy <james2mccarthy@gmail.com>
parent a48e5f17
No related branches found
No related tags found
No related merge requests found
...@@ -87,7 +87,7 @@ module Geocoder ...@@ -87,7 +87,7 @@ module Geocoder
# Class of the result objects # Class of the result objects
# #
def result_class def result_class
eval("Geocoder::Result::#{self.class.to_s.split(":").last}") Geocoder::Result.const_get(self.class.to_s.split(":").last)
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