aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/relations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Relation should respond to class methodsPratik Naik2010-01-221-0/+5
|
* Handle invalid query IN() generated when a blank array is supplied in hash ↵Pratik Naik2010-01-181-0/+5
| | | | conditions
* Dont check for class equaity when merging relationsPratik Naik2010-01-181-4/+0
|
* Make Relation#reload force load the records immediatelyPratik Naik2010-01-171-3/+5
|
* Add Relation#create_with to explictily specify create scopePratik Naik2010-01-041-0/+8
|
* Relation#merge and Relation#except should respect locksPratik Naik2010-01-031-0/+5
|
* Add Relation#exceptPratik Naik2010-01-031-0/+12
|
* Give preference to the second relation's order when mergingPratik Naik2010-01-031-1/+0
|
* Add Relation#includes to be an equivalent of current finder option :includePratik Naik2010-01-031-1/+24
|
* Implement Relation#create and Relation#create!Pratik Naik2010-01-031-0/+24
|
* Implement Relation#newPratik Naik2010-01-031-0/+16
|
* Relation#many? shoud load the records if there's a LIMITPratik Naik2009-12-301-0/+6
|
* Add Relation#any? and Relation#many?Pratik Naik2009-12-301-0/+26
|
* Fix the count test for postgresPratik Naik2009-12-301-1/+1
|
* Relation#count should look for projections in chained relations and perform ↵Emilio Tagua2009-12-301-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 Naik2009-12-291-0/+7
| | | | methods
* Make sure Relation responds to dynamic finder methodsPratik Naik2009-12-291-1/+9
|
* Add Relation#size and Relation#empty?Pratik Naik2009-12-291-3/+15
|
* Add Relation#delete_allPratik Naik2009-12-291-0/+20
|
* Add Relation#countPratik Naik2009-12-281-0/+30
|
* Raise ArgumentError when trying to merge relations of different classesPratik Naik2009-12-281-0/+5
|
* Fix relation tests for postgresPratik Naik2009-12-281-8/+9
|
* Handle preloads and eager loads when merging relationsPratik Naik2009-12-281-2/+18
|
* Add relation#merge to merge two relationsPratik Naik2009-12-281-0/+8
|
* Add relation.destroy_allPratik Naik2009-12-271-0/+13
|
* Add relation.last and relation.reverse_orderPratik Naik2009-12-271-0/+6
|
* Add relation.exists?Pratik Naik2009-12-271-0/+11
|
* Add find(ids) to relationsPratik Naik2009-12-271-1/+23
|
* Add find_or_create_by_* and find_or_initialize_by_* to relationsPratik Naik2009-12-271-0/+21
|
* Add find_by_* and find_all_by_* finders to ActiveRecord::RelationPratik Naik2009-12-271-1/+33
|
* Ensure all the finder methods respect scopingPratik Naik2009-12-261-1/+6
|
* Add relation.reload to force reloading the recordsPratik Naik2009-12-261-0/+15
|
* Cache the loaded relationsPratik Naik2009-12-261-1/+32
|
* Ensure preload and eager_load finder methods accept multiple argumentsPratik Naik2009-12-261-4/+10
|
* Add support for multiple arguments to .where finderPratik Naik2009-12-261-0/+1
|
* Add Relation#all as an alias for to_aPratik Naik2009-12-261-0/+6
|
* Rename Model.conditions and relation.conditions to .wherePratik Naik2009-12-261-7/+7
|
* No parentheses for assert_equalPratik Naik2009-12-261-6/+6
|
* Add Model.select/group/order/limit/joins/conditions/preload/eager_load class ↵Pratik Naik2009-12-261-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 argumentsPratik Naik2009-12-261-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 assertionJeremy Kemper2009-11-091-1/+1
|
* Relations: Added offset when finding with associations. Delegate array instanceEmilio Tagua2009-10-071-5/+4
| | | | methods to to_a.
* Allow preload and eager_load to work on relations at the same time.Emilio Tagua2009-10-071-0/+22
|
* Moved relation's test to relation_test.Emilio Tagua2009-10-051-0/+11
|
* Added association preload to relation.Emilio Tagua2009-09-011-1/+30
|
* Revert "Revert "Add readonly support for relations.""Emilio Tagua2009-08-271-0/+6
| | | | This reverts commit f2c0725d79e29b02e30e7a4827851acc4a766730.
* Revert "Add readonly support for relations."Emilio Tagua2009-08-271-6/+0
| | | | This reverts commit 7cce95b25ace33e04526d4490e487a080c1f9b96.
* Add readonly support for relations.Emilio Tagua2009-08-271-0/+6
|
* Override respond_to? in ActiveRecord::Relation to go withEmilio Tagua2009-08-181-0/+8
| | | | method_missing.
* Use immutable relation objects to generate queries.Emilio Tagua2009-08-181-10/+10
|