- 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>
-
- 29 6月, 2010 1 次提交
-
-
由 José Valim 提交于
Add scoping and unscoped as the syntax to replace the old with_scope and with_exclusive_scope. A few examples: * with_scope now should be scoping: Before: Comment.with_scope(:find => { :conditions => { :post_id => 1 } }) do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end After: Comment.where(:post_id => 1).scoping do Comment.first #=> SELECT * FROM comments WHERE post_id = 1 end * with_exclusive_scope now should be unscoped: class Post < ActiveRecord::Base default_scope :published => true end Post.all #=> SELECT * FROM posts WHERE published = true Before: Post.with_exclusive_scope do Post.all #=> SELECT * FROM posts end After: Post.unscoped do Post.all #=> SELECT * FROM posts end Notice you can also use unscoped without a block and it will return an anonymous scope with default_scope values: Post.unscoped.all #=> SELECT * FROM posts
-
- 26 6月, 2010 4 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
[#4972 state:committed] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Santiago Pastorino 提交于
[#4972] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
[#4841 state:committed]
-
- 24 6月, 2010 3 次提交
-
-
由 Emilio Tagua 提交于
[#4882 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
由 Neeraj Singh 提交于
[#4547 state:resolved] Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 23 6月, 2010 1 次提交
-
-
由 Neeraj Singh 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 22 6月, 2010 1 次提交
-
-
由 Emilio Tagua 提交于
Signed-off-by: NJosé Valim <jose.valim@gmail.com>
-
- 08 6月, 2010 1 次提交
-
-
由 Santiago Pastorino 提交于
Signed-off-by: NJeremy Kemper <jeremy@bitsweat.net>
-
- 05 6月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
Oracle does not guarantee that SELECT will return records ordered by primary key
-