Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Rename Model.conditions and relation.conditions to .where | Pratik Naik | 2009-12-26 | 1 | -7/+7 | |
| | ||||||
* | No parentheses for assert_equal | Pratik Naik | 2009-12-26 | 1 | -6/+6 | |
| | ||||||
* | Add Model.select/group/order/limit/joins/conditions/preload/eager_load class ↵ | Pratik Naik | 2009-12-26 | 1 | -27/+33 | |
| | | | | | | | | | 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" | |||||
* | Model.scoped now returns a relation if invoked without any arguments | Pratik Naik | 2009-12-26 | 1 | -0/+6 | |
| | | | | | | | | 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 | |||||
* | Clarify failed assertion | Jeremy Kemper | 2009-11-09 | 1 | -1/+1 | |
| | ||||||
* | Relations: Added offset when finding with associations. Delegate array instance | Emilio Tagua | 2009-10-07 | 1 | -5/+4 | |
| | | | | methods to to_a. | |||||
* | Allow preload and eager_load to work on relations at the same time. | Emilio Tagua | 2009-10-07 | 1 | -0/+22 | |
| | ||||||
* | Moved relation's test to relation_test. | Emilio Tagua | 2009-10-05 | 1 | -0/+11 | |
| | ||||||
* | Added association preload to relation. | Emilio Tagua | 2009-09-01 | 1 | -1/+30 | |
| | ||||||
* | Revert "Revert "Add readonly support for relations."" | Emilio Tagua | 2009-08-27 | 1 | -0/+6 | |
| | | | | This reverts commit f2c0725d79e29b02e30e7a4827851acc4a766730. | |||||
* | Revert "Add readonly support for relations." | Emilio Tagua | 2009-08-27 | 1 | -6/+0 | |
| | | | | This reverts commit 7cce95b25ace33e04526d4490e487a080c1f9b96. | |||||
* | Add readonly support for relations. | Emilio Tagua | 2009-08-27 | 1 | -0/+6 | |
| | ||||||
* | Override respond_to? in ActiveRecord::Relation to go with | Emilio Tagua | 2009-08-18 | 1 | -0/+8 | |
| | | | | method_missing. | |||||
* | Use immutable relation objects to generate queries. | Emilio Tagua | 2009-08-18 | 1 | -10/+10 | |
| | ||||||
* | Fix typo in test classname. | Emilio Tagua | 2009-08-18 | 1 | -1/+1 | |
| | ||||||
* | Use finder options as relation method names to provide more familiar | Emilio Tagua | 2009-08-18 | 1 | -12/+10 | |
| | | | | | naming. Use bang methods convention in methods that alter the relation. | |||||
* | Added collection iteration to AR::Relation. | Emilio Tagua | 2009-08-03 | 1 | -1/+0 | |
| | ||||||
* | Added ActiveRecord::Relation tests. Allow Relation to accept conditional | Emilio Tagua | 2009-07-31 | 1 | -0/+78 | |
hashes and arrays like #find does. |