Created
March 13, 2009 22:10
-
-
Save johnbender/78795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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