Pratik Naik
|
8bb5274648
|
Get rid of Relation#order_clauses
|
2010-01-18 18:56:55 +05:30 |
|
Pratik Naik
|
88de6b2de2
|
Inherit named scope class Scope from Relation
|
2010-01-18 04:24:24 +05:30 |
|
Pratik Naik
|
c6850d8361
|
Ensure that Scope#proxy_scope is always klass. Rename proxy_scope to klass too.
|
2010-01-18 00:03:18 +05:30 |
|
Pratik Naik
|
8d87c80c19
|
Make Relation#reload force load the records immediately
|
2010-01-17 04:25:59 +05:30 |
|
Pratik Naik
|
3da29f647b
|
Remove AR#scope() method
|
2010-01-16 01:42:01 +05:30 |
|
Pratik Naik
|
bed9179aa1
|
Make scopes use relations under the hood
|
2010-01-16 00:02:46 +05:30 |
|
Pratik Naik
|
a04486dc99
|
Delay building arel relation as long as possible for improved introspection
|
2010-01-12 22:25:55 +05:30 |
|
Pratik Naik
|
a68165833a
|
Add Relation#create_with to explictily specify create scope
|
2010-01-04 03:50:16 +05:30 |
|
Pratik Naik
|
a115b5d79a
|
Ensure using proper engine for Arel::Table
|
2010-01-04 02:05:18 +05:30 |
|
Pratik Naik
|
22bfd8b098
|
Rename a variable name for consistency
|
2010-01-03 19:20:40 +05:30 |
|
Pratik Naik
|
8edfa8f82f
|
Move Relation#spawn and Relation#merge to a separate module
|
2010-01-03 18:57:57 +05:30 |
|
Pratik Naik
|
3eca0ab838
|
Give preference to the second relation's order when merging
|
2010-01-03 18:52:30 +05:30 |
|
Pratik Naik
|
47da00e94b
|
Further simplify Relation#references_eager_loaded_tables?
|
2010-01-03 03:58:34 +05:30 |
|
Pratik Naik
|
e9ebf8b898
|
Cache Relation#to_sql
|
2010-01-03 03:56:21 +05:30 |
|
Pratik Naik
|
eb7fdb9464
|
Make Relation#includes behave exactly like the existing :include option
|
2010-01-03 03:46:08 +05:30 |
|
Pratik Naik
|
6f5f23aaa7
|
Add Relation#includes to be an equivalent of current finder option :include
|
2010-01-03 03:24:28 +05:30 |
|
Pratik Naik
|
ac1df91e5e
|
Implement Relation#create and Relation#create!
|
2010-01-03 00:16:14 +05:30 |
|
Pratik Naik
|
65200d2933
|
Implement Relation#new
|
2010-01-03 00:08:59 +05:30 |
|
Pratik Naik
|
32b48bf419
|
Use arel predicates instead of strings wherever possible when merging relations
|
2010-01-02 22:43:40 +05:30 |
|
Pratik Naik
|
f1acf1cc74
|
Give higher preference to second relation's equality predicates when merging
|
2010-01-02 21:16:16 +05:30 |
|
Pratik Naik
|
498fddc714
|
Fix join string for the WHERE clause
|
2010-01-02 03:20:52 +05:30 |
|
Pratik Naik
|
93555c672e
|
Add Relation#table to get the relevant Arel::Table
|
2010-01-01 00:56:49 +05:30 |
|
Pratik Naik
|
d5f9173926
|
Add Relation#delete [Pratik Naik, Emilio Tagua]
|
2010-01-01 00:17:40 +05:30 |
|
Pratik Naik
|
7aabaac0f5
|
Organize Relation methods into separate modules
|
2009-12-30 19:29:26 +05:30 |
|
Pratik Naik
|
8734f9a271
|
Relation#many? shoud load the records if there's a LIMIT
|
2009-12-30 12:14:00 +05:30 |
|
Pratik Naik
|
bdf59a5618
|
Add Relation#any? and Relation#many?
|
2009-12-30 12:11:22 +05:30 |
|
Pratik Naik
|
0dea509817
|
Oops, add the missing #tap call
|
2009-12-29 15:54:40 +05:30 |
|
Pratik Naik
|
0a1ff1a14f
|
Rewrite Relation#readonly, eager_load, preload using Object#tap
|
2009-12-29 15:28:40 +05:30 |
|
Pratik Naik
|
1785e1b26e
|
Rename Relation#create_new_relation to spawn and refactor preload/eagerload associations using attr_writer
|
2009-12-29 15:24:30 +05:30 |
|
Pratik Naik
|
61fa111a55
|
Refactor Relation#readonly using attr_writer
|
2009-12-29 15:24:30 +05:30 |
|
Pratik Naik
|
981f696398
|
Relation#respond_to? should take second argument for responding to private methods
|
2009-12-29 12:31:08 +05:30 |
|
Pratik Naik
|
bc933d0fa1
|
Make sure Relation responds to dynamic finder methods
|
2009-12-29 12:27:40 +05:30 |
|
Pratik Naik
|
f290e685f0
|
Add Relation#size and Relation#empty?
|
2009-12-29 12:15:28 +05:30 |
|
Pratik Naik
|
13989ff8c6
|
Use relation#delete_all for Model.delete_all
|
2009-12-29 11:46:07 +05:30 |
|
Pratik Naik
|
54b80c7361
|
Add Relation#delete_all
|
2009-12-29 11:46:07 +05:30 |
|
Pratik Naik
|
08633bae5e
|
Migrate all the calculation methods to Relation
|
2009-12-29 04:30:04 +05:30 |
|
Jeremy Kemper
|
ea7b5ff99e
|
Use present rather than any
|
2009-12-28 12:12:53 -08:00 |
|
Pratik Naik
|
91e28aae86
|
Add Model.having and Relation#having
|
2009-12-29 00:07:46 +05:30 |
|
Pratik Naik
|
e8ca22d129
|
Move Relation calculation methods to a separate module
|
2009-12-28 19:12:15 +05:30 |
|
Pratik Naik
|
8f5d9eb0e2
|
Add Relation#count
|
2009-12-28 18:38:28 +05:30 |
|
Pratik Naik
|
02207dc02c
|
Add Model.readonly and association_collection#readonly finder method
|
2009-12-28 16:17:46 +05:30 |
|
Pratik Naik
|
b95cc72429
|
Raise ArgumentError when trying to merge relations of different classes
|
2009-12-28 14:24:52 +05:30 |
|
Pratik Naik
|
92c982d973
|
Relation#readonly(false) should toggle the readonly flag
|
2009-12-28 14:20:54 +05:30 |
|
Pratik Naik
|
a3c1db4e44
|
Add Model.lock and relation#lock now that arel has locking
|
2009-12-28 12:42:06 +05:30 |
|
Pratik Naik
|
a0ff5f82c3
|
Dont delegate relation#find to to_a
|
2009-12-28 03:22:33 +05:30 |
|
Pratik Naik
|
e9e20ab601
|
Use arel#from instead of the current hack
|
2009-12-28 03:19:31 +05:30 |
|
Pratik Naik
|
51a1d5a670
|
Handle preloads and eager loads when merging relations
|
2009-12-28 01:33:20 +05:30 |
|
Pratik Naik
|
a8b10a2a8d
|
Add relation#merge to merge two relations
|
2009-12-28 01:08:34 +05:30 |
|
Pratik Naik
|
08312e9958
|
Return a new relation when blank is supplied to relation.joins
|
2009-12-27 23:29:41 +05:30 |
|
Pratik Naik
|
bbdeaae2ca
|
Add relation.destroy_all
|
2009-12-27 21:15:12 +05:30 |
|