1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

8 commits

Author SHA1 Message Date
Jon Leighton
13b3c77e39 Add Relation#find_by and Relation#find_by! 2012-03-30 12:52:29 +01:00
Aaron Patterson
9bcb9cd55f column types are passed from the result set to the instantiated AR object 2012-02-07 13:51:52 -08:00
Jon Leighton
75de1ce131 Merge pull request #4805 from xuanxu/none_and_null_object_pattern
Added `none` query method to return zero records.
2012-01-31 11:17:02 -08:00
Aaron Patterson
c091ab0207 always return the result set from select_all 2012-01-31 10:58:16 -08:00
Aaron Patterson
40ce682048 made the result set object act more like an array 2012-01-31 10:58:16 -08:00
Juanjo Bazán
8270e4a8ce Added none query method to return zero records.
And added NullRelation class implementing the null object pattern for the `Relation` class.
2012-01-31 19:50:09 +01:00
Jon Leighton
4c4760a619 Add ActiveRecord::Relation#references (#950) 2012-01-16 21:17:17 +00:00
Jon Leighton
ceb33f8493 Split out most of the AR::Base code into separate modules 🍰 2011-12-15 20:45:37 +00:00