Skip to content

Instantly share code, notes, and snippets.

@johnbender
Created March 13, 2009 22:10
Show Gist options
  • Save johnbender/78795 to your computer and use it in GitHub Desktop.
Save johnbender/78795 to your computer and use it in GitHub Desktop.
#what if you could write a query in rails that looked like ...
@users = Users.where do
:age.from {13 => 26}
end
#or
@events = Events.where do
:date.is.in ["02/10/2009", "02/11/2009", "03/15/2009"]
:num_seats.is.between [3, 12]
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment