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

deprecate Geocoder::Result::Nominatim#class method

parent c741d4a7
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,11 @@ module Geocoder::Result
polygonpoints display_name class type stadium]
end
define_method 'class' do
warn "Method 'class' is deprecated. Use 'place_class' instead"
@data['class']
end
response_attributes.each do |a|
unless method_defined?(a)
define_method a do
......
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