alexreisner/geocoder — Issue #166: Scope 'near' does not work with pluck()
Author: santuxus
Created: 2012-01-25 19:10:25+00:00
State: open

Hello!

I needed to get array of only one column values from my locations table and it seems that pluck() always returns location.id, not depending what attribute is passed to the function.

> Location.near('Lille')
=> [#, ]

> Location.near('Lille').pluck(:id)
=> [4, 6]

> Location.near('Lille').pluck(:created_at)
=> [4, 6]

Regards,
Santuxus