Reputation: 69
I have the following issue:
Person.near([@lat, @lng], 100).includes(:licenses).where(licenses: { state: @state })
When I remove the includes
and where
statements it returns all near persons, but when I use the includes
and where
for some reason it returns nothing
Any ideas?
PD: I already added the reverse_geocoding
to the model
Upvotes: 0
Views: 33