Skip to content
Snippets Groups Projects
Commit 85a6287a authored by dreamfall's avatar dreamfall
Browse files

use classic way to define method

it is better and faster
parent 1bcf4077
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ module Geocoder::Result
polygonpoints display_name class type stadium]
end
define_method 'class' do
def class
warn "DEPRECATION WARNING: The 'class' method of Geocoder::Result::Nominatim objects is deprecated and will be removed in Geocoder version 1.2.0. Please use 'place_class' instead."
@data['class']
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