Rails where clause with Geocoder gem

35 Views Asked by At

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

0

There are 0 best solutions below