Module: Geocoder::Store::ActiveRecord::ClassMethods
- Defined in:
- lib/geocoder/stores/active_record.rb
Overview
Methods which will be class methods of the including class.
Instance Method Summary collapse
Instance Method Details
#distance_from_sql(location, *args) ⇒ Object
69 70 71 72 |
# File 'lib/geocoder/stores/active_record.rb', line 69 def distance_from_sql(location, *args) latitude, longitude = Geocoder::Calculations.extract_coordinates(location) (latitude, longitude, *args) if latitude and longitude end |