Created
October 3, 2012 13:26
-
-
Save roychri/3826893 to your computer and use it in GitHub Desktop.
How to add activerecord query calls to existing
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
def a | |
e = Event.order("id DESC") | |
e = e.offset(3) | |
e = e.limit(1) | |
e | |
end | |
a.count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment