Daniel Ortin
Daniel Ortin

Reputation: 69

Rails where clause with Geocoder gem

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

Answers (0)

Related Questions