tsukasaoishi / fresh_connection

FreshConnection provides access to one or more configured database replicas.
MIT License
58 stars 11 forks source link

pluck method throws exception when result of conditions is empty #5

Closed tsukasaoishi closed 10 years ago

tsukasaoishi commented 10 years ago

For example

User.limit(1).pluck(:name) #=> ["tsukasa"]
User.limit(0).pluck(:name) #=>  NoMethodError: undefined method `keys' for nil:NilClass

result must be empty array.