Location has :lat and :lng for use with 'geokit-rails' I'm running Rails 4.
Is it possible to do a query for distinct Collections that have Tracks in a specified Location range?
class Location < ActiveRecord::Base
belongs_to :locatable, polymorphic: true
acts_as_mappable
end
class Tracks < ActiveRecord::Base
has_one :location, as: :locatable
belongs_to :collection
end
class Collection < ActiveRecord::Base
belongs_to :user
has_many :tracks
end