- 15 2月, 2011 1 次提交
-
-
由 Emilio Tagua 提交于
-
- 13 2月, 2011 1 次提交
-
-
由 Ernie Miller 提交于
-
- 04 1月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
ActiveRecord::Relation#primary_key should return a string, just like ActiveRecord::Base.primary_key does.
-
由 Jon Leighton 提交于
Let AssociationCollection#find use #scoped to do its finding. Note that I am removing test_polymorphic_has_many_going_through_join_model_with_disabled_include, since this specifies different behaviour for an association than for a regular scope. It seems reasonable to expect scopes and association proxies to behave in roughly the same way rather than having subtle differences.
-
由 Jon Leighton 提交于
Fix test_any in relations_test.rb, which was failing when relations_test.rb is run on its own (it passes when the entire suite is run). This is a hacky fix for a problem I didn't quite get to the bottom of, so I'd welcome a better solution...
-
-
- 17 12月, 2010 1 次提交
-
-
由 Piotr Sarnacki 提交于
-
- 16 12月, 2010 1 次提交
-
-
由 Pavel Gorbokon 提交于
* rename method names (actually in tests) * rename instance variable @_named_scopes_cache to @_scopes_cache * rename references in doc comments * don't touch CHANGELOG :)
-
- 24 11月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
[#6022 state:resolved]
-
- 20 11月, 2010 2 次提交
-
-
由 Emilio Tagua 提交于
-
由 Marcin Raczkowski 提交于
-
- 19 11月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 18 11月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
When use where more than once on the same column, relation doesn't do an 'or' or 'in' with the values
-
- 16 11月, 2010 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 09 11月, 2010 1 次提交
-
-
由 David Chelimsky 提交于
- persisted? is the API defined in ActiveModel - makes it easier for extension libraries to conform to ActiveModel APIs without concern for whether the extended object is specifically ActiveRecord [#5927 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 07 11月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
use column names as order by complex function parameters, fix for postgresql adapter to correctly remove ASC/DESC Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 06 11月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Fixes queries using limits and punctuation in order, removes order("col1, col2") usage in favor of order(["col1", "col2"}) [#4597 state:committed]
-
- 31 10月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 27 10月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 23 10月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 11 10月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
-
- 28 9月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 19 9月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
while declaring default_scope Also added test for unscoped using block style with four different combinations Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 16 9月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 10 9月, 2010 2 次提交
-
-
由 kane 提交于
added a test for relation which checks intersection between a relation and an array works in both directions Signed-off-by: NMikel Lindsaar <raasdnil@gmail.com>
-
由 Emilio Tagua 提交于
-
- 08 9月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 9月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
order that is declared first has highest priority in all cases. Here are some examples. Car.order('name desc').find(:first, :order => 'id').name Car.named_scope_with_order.named_scope_with_another_order Car.order('id DESC').scoping do Car.find(:first, :order => 'id asc') end No special treatment to with_scope or scoping. Also note that if default_scope declares an order then the order declared in default_scope has the highest priority unless with_exclusive_scope is used. Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 01 9月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 17 8月, 2010 1 次提交
-
-
由 Xavier Noria 提交于
code gardening: we have assert_(nil|blank|present), more concise, with better default failure messages - let's use them
-
- 14 8月, 2010 3 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
-
- 13 8月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 07 8月, 2010 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 31 7月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 22 7月, 2010 1 次提交
-
-
由 Subba Rao Pasupuleti 提交于
[#5153 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-