Model.where(:id.in => []) should behave consistent with ActiveRecord's Model.find([]) #144

Closed
HendrikW opened this Issue May 14, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@HendrikW

Model.where(:id.in => []) raises a RethinkDB::RqlCompileError with r.table("models").get_all({"index" => :id}).order_by(r.asc(:id)) missing an argument.

It should simply return [].

@nviennot nviennot closed this in 75e177a May 14, 2015

@HendrikW

This comment has been minimized.

Show comment
Hide comment
@HendrikW

HendrikW May 14, 2015

awesome. thanks a lot

awesome. thanks a lot

@nviennot

This comment has been minimized.

Show comment
Hide comment
@nviennot

nviennot May 14, 2015

Owner

you're welcome :)

Owner

nviennot commented May 14, 2015

you're welcome :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment