dm-geokit
dm-geokit copied to clipboard
ArgumentError on example query
Hi,
Using your basic example query (modified slightly to fit my class name):
Locations.all(:address.near => {:origin => 'Portland, OR', :distance => 5.mi}, :order => [:address_distance.desc])
Throws an argument error:
+options[:field]+ entry :address_distance does not map to a property in Locations
file: query.rb location: assert_valid_fields_without_operator line: 805
Full backtrace:
http://pastebin.com/8kgAeEWn