Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Support for multiple selects added | Neeraj Singh and Santiago Pastorino | 2010-06-25 | 1 | -0/+6 | |
| | | | | [#4841 state:committed] | |||||
* | Add tests for relation count. Fix other tests that were conceptually wrong. | Emilio Tagua | 2010-06-24 | 1 | -1/+5 | |
| | | | | | | [#4882 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | adding fix for to_xml for ActiveRecord relation object | Neeraj Singh | 2010-06-23 | 1 | -0/+5 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | ActiveRecord's relation object should respond to to_json and to_yaml | Neeraj Singh | 2010-06-23 | 1 | -0/+10 | |
| | | | | | | [#4547 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | test for #4917 | Neeraj Singh | 2010-06-22 | 1 | -0/+7 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Fix order method to accept relation attributes. | Emilio Tagua | 2010-06-22 | 1 | -2/+6 | |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | This test shouldn't rely on the order of the data returned by select | Santiago Pastorino | 2010-06-07 | 1 | -1/+1 | |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | |||||
* | Special treatement for Relation#select { with block } | Pratik Naik | 2010-06-02 | 1 | -0/+5 | |
| | ||||||
* | Final iteration of use better testing methods | Neeraj Singh | 2010-05-19 | 1 | -3/+3 | |
| | | | | | | [#4652 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | |||||
* | Add Relation extensions | Pratik Naik | 2010-04-02 | 1 | -0/+16 | |
| | ||||||
* | Relation should respond to class methods | Pratik Naik | 2010-01-22 | 1 | -0/+5 | |
| | ||||||
* | Handle invalid query IN() generated when a blank array is supplied in hash ↵ | Pratik Naik | 2010-01-18 | 1 | -0/+5 | |
| | | | | conditions | |||||
* | Dont check for class equaity when merging relations | Pratik Naik | 2010-01-18 | 1 | -4/+0 | |
| | ||||||
* | Make Relation#reload force load the records immediately | Pratik Naik | 2010-01-17 | 1 | -3/+5 | |
| | ||||||
* | Add Relation#create_with to explictily specify create scope | Pratik Naik | 2010-01-04 | 1 | -0/+8 | |
| | ||||||
* | Relation#merge and Relation#except should respect locks | Pratik Naik | 2010-01-03 | 1 | -0/+5 | |
| | ||||||
* | Add Relation#except | Pratik Naik | 2010-01-03 | 1 | -0/+12 | |
| | ||||||
* | Give preference to the second relation's order when merging | Pratik Naik | 2010-01-03 | 1 | -1/+0 | |
| | ||||||
* | Add Relation#includes to be an equivalent of current finder option :include | Pratik Naik | 2010-01-03 | 1 | -1/+24 | |
| | ||||||
* | Implement Relation#create and Relation#create! | Pratik Naik | 2010-01-03 | 1 | -0/+24 | |
| | ||||||
* | Implement Relation#new | Pratik Naik | 2010-01-03 | 1 | -0/+16 | |
| | ||||||
* | Relation#many? shoud load the records if there's a LIMIT | Pratik Naik | 2009-12-30 | 1 | -0/+6 | |
| | ||||||
* | Add Relation#any? and Relation#many? | Pratik Naik | 2009-12-30 | 1 | -0/+26 | |
| | ||||||
* | Fix the count test for postgres | Pratik Naik | 2009-12-30 | 1 | -1/+1 | |
| | ||||||
* | Relation#count should look for projections in chained relations and perform ↵ | Emilio Tagua | 2009-12-30 | 1 | -1/+11 | |
| | | | | | | the count on the given column Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | |||||
* | Relation#respond_to? should take second argument for responding to private ↵ | Pratik Naik | 2009-12-29 | 1 | -0/+7 | |
| | | | | methods | |||||
* | Make sure Relation responds to dynamic finder methods | Pratik Naik | 2009-12-29 | 1 | -1/+9 | |
| | ||||||
* | Add Relation#size and Relation#empty? | Pratik Naik | 2009-12-29 | 1 | -3/+15 | |
| | ||||||
* | Add Relation#delete_all | Pratik Naik | 2009-12-29 | 1 | -0/+20 | |
| | ||||||
* | Add Relation#count | Pratik Naik | 2009-12-28 | 1 | -0/+30 | |
| | ||||||
* | Raise ArgumentError when trying to merge relations of different classes | Pratik Naik | 2009-12-28 | 1 | -0/+5 | |
| | ||||||
* | Fix relation tests for postgres | Pratik Naik | 2009-12-28 | 1 | -8/+9 | |
| | ||||||
* | Handle preloads and eager loads when merging relations | Pratik Naik | 2009-12-28 | 1 | -2/+18 | |
| | ||||||
* | Add relation#merge to merge two relations | Pratik Naik | 2009-12-28 | 1 | -0/+8 | |
| | ||||||
* | Add relation.destroy_all | Pratik Naik | 2009-12-27 | 1 | -0/+13 | |
| | ||||||
* | Add relation.last and relation.reverse_order | Pratik Naik | 2009-12-27 | 1 | -0/+6 | |
| | ||||||
* | Add relation.exists? | Pratik Naik | 2009-12-27 | 1 | -0/+11 | |
| | ||||||
* | Add find(ids) to relations | Pratik Naik | 2009-12-27 | 1 | -1/+23 | |
| | ||||||
* | Add find_or_create_by_* and find_or_initialize_by_* to relations | Pratik Naik | 2009-12-27 | 1 | -0/+21 | |
| | ||||||
* | Add find_by_* and find_all_by_* finders to ActiveRecord::Relation | Pratik Naik | 2009-12-27 | 1 | -1/+33 | |
| | ||||||
* | Ensure all the finder methods respect scoping | Pratik Naik | 2009-12-26 | 1 | -1/+6 | |
| | ||||||
* | Add relation.reload to force reloading the records | Pratik Naik | 2009-12-26 | 1 | -0/+15 | |
| | ||||||
* | Cache the loaded relations | Pratik Naik | 2009-12-26 | 1 | -1/+32 | |
| | ||||||
* | Ensure preload and eager_load finder methods accept multiple arguments | Pratik Naik | 2009-12-26 | 1 | -4/+10 | |
| | ||||||
* | Add support for multiple arguments to .where finder | Pratik Naik | 2009-12-26 | 1 | -0/+1 | |
| | ||||||
* | Add Relation#all as an alias for to_a | Pratik Naik | 2009-12-26 | 1 | -0/+6 | |
| | ||||||
* | 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 |