aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/relation.rb
Commit message (Collapse)AuthorAgeFilesLines
...
* Relation should supply :from to find_with_associationsPratik Naik2009-12-271-1/+2
|
* Add find(ids) to relationsPratik Naik2009-12-271-1/+62
|
* Make Model.find_or_create_by_* and find_or_initialize_by_* use relations and ↵Pratik Naik2009-12-271-3/+4
| | | | remove method caching
* Add find_or_create_by_* and find_or_initialize_by_* to relationsPratik Naik2009-12-271-0/+23
|
* Make Model.find_by_* and Model.find_all_by_* use relations and remove ↵Pratik Naik2009-12-271-9/+13
| | | | dynamic method caching
* Add find_by_* and find_all_by_* finders to ActiveRecord::RelationPratik Naik2009-12-271-0/+14
|
* Ensure Model.scoped adds type conditions for STI modelsPratik Naik2009-12-271-11/+14
|
* Add relation.reload to force reloading the recordsPratik Naik2009-12-261-0/+6
|
* Cache the loaded relationsPratik Naik2009-12-261-32/+43
|
* Ensure preload and eager_load finder methods accept multiple argumentsPratik Naik2009-12-261-2/+2
|
* Make sure the relations are always immutablePratik Naik2009-12-261-8/+5
|
* Add support for multiple arguments to .where finderPratik Naik2009-12-261-2/+7
|
* Add Relation#all as an alias for to_aPratik Naik2009-12-261-0/+2
|
* Stop supporting blank arguments to AR#relation query methodsPratik Naik2009-12-261-27/+19
|
* Rename Model.conditions and relation.conditions to .wherePratik Naik2009-12-261-1/+1
|
* Add Model.select/group/order/limit/joins/conditions/preload/eager_load class ↵Pratik Naik2009-12-261-25/+31
| | | | | | | | | 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"
* Ruby 1.9: fix Relation respond_to? and method_missingJeremy Kemper2009-11-101-6/+4
|
* Relations: Added offset when finding with associations. Delegate array instanceEmilio Tagua2009-10-071-5/+3
| | | | methods to to_a.
* Allow preload and eager_load to work on relations at the same time.Emilio Tagua2009-10-071-6/+8
|
* Added eager loading support to Relation and ActiveRecord#all.Emilio Tagua2009-10-051-7/+25
|
* Added association preload to relation.Emilio Tagua2009-09-011-0/+8
|
* Revert "Revert "Add readonly support for relations.""Emilio Tagua2009-08-271-1/+11
| | | | This reverts commit f2c0725d79e29b02e30e7a4827851acc4a766730.
* Revert "Add readonly support for relations."Emilio Tagua2009-08-271-11/+1
| | | | This reverts commit 7cce95b25ace33e04526d4490e487a080c1f9b96.
* Add readonly support for relations.Emilio Tagua2009-08-271-1/+11
|
* No need to create a new relation if the argument is blank.Emilio Tagua2009-08-251-6/+6
|
* Override respond_to? in ActiveRecord::Relation to go withEmilio Tagua2009-08-181-0/+8
| | | | method_missing.
* Inline initializer setup.Emilio Tagua2009-08-181-2/+1
|
* Use immutable relation objects to generate queries.Emilio Tagua2009-08-181-37/+34
|
* Use explicit method definition instead of metaprogramming.Emilio Tagua2009-08-181-11/+16
|
* Relation#joins! should know what to join instead of delegating toEmilio Tagua2009-08-181-7/+13
| | | | construct_join.
* Use finder options as relation method names to provide more familiarEmilio Tagua2009-08-181-8/+24
| | | | | naming. Use bang methods convention in methods that alter the relation.
* Use ARel's joins when building a query for finding records with includedEmilio Tagua2009-08-141-3/+9
| | | | associations.
* Added collection iteration to AR::Relation.Emilio Tagua2009-08-031-0/+4
|
* Added ActiveRecord::Relation tests. Allow Relation to accept conditionalEmilio Tagua2009-07-311-1/+14
| | | | hashes and arrays like #find does.
* Introduced ActiveRecord::Relation, a layer between an ARel relation and an ↵Emilio Tagua2009-07-211-0/+39
AR relation