| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
conditions
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
the count on the given column
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
|
|
|
|
| |
methods
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
methods returning a lazy relation.
Examples :
posts = Post.select('id).order('name') # Returns a lazy relation
posts.each {|p| puts p.id } # Fires "select id from posts order by name"
|
|
|
|
|
|
|
|
| |
Example :
posts = Post.scoped
posts.size # Fires "select count(*) from posts" and returns the count
posts.each {|p| puts p.name } # Fires "select * from posts" and loads post objects
|
| |
|
|
|
|
| |
methods to to_a.
|
| |
|
| |
|
| |
|
|
|
|
| |
This reverts commit f2c0725d79e29b02e30e7a4827851acc4a766730.
|
|
|
|
| |
This reverts commit 7cce95b25ace33e04526d4490e487a080c1f9b96.
|
| |
|
|
|
|
| |
method_missing.
|