- 30 4月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 27 4月, 2012 3 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 26 4月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 11 4月, 2012 1 次提交
-
-
由 Juanjo Bazán 提交于
So a NullRelation (Relation#none) is chainable with database methods.
-
- 04 4月, 2012 1 次提交
-
-
由 Benedikt Deicke 提交于
-
- 03 4月, 2012 1 次提交
-
-
由 Benedikt Deicke 提交于
The #relation method gets called in four places and the return value was instantly cloned in three of them. The only place that did not clone was ActiveRecord::Scoping::Default::ClassMethods#unscoped. This introduced a bug described in #5667 and should really clone the relation, too. This means all four places would clone the relation, so it doesn't make a lot of sense caching it in the first place. The four places with calls to relations are: activerecord/lib/active_record/scoping/default.rb:110:in `block in build_default_scope'" activerecord/lib/active_record/scoping/default.rb:42:in `unscoped'" activerecord/lib/active_record/scoping/named.rb:38:in `scoped'" activerecord/lib/active_record/scoping/named.rb:52:in `scope_attributes'"
-
- 30 3月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
-
- 18 3月, 2012 1 次提交
-
-
由 Ruben Davila 提交于
-
- 17 3月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
-
- 16 3月, 2012 2 次提交
-
-
由 Thiago Almeida 提交于
-
由 Thiago Almeida 提交于
-
- 14 3月, 2012 1 次提交
-
-
由 Carlos Antonio da Silva 提交于
-
- 12 3月, 2012 1 次提交
-
-
由 Andrew White 提交于
-
- 12 2月, 2012 1 次提交
-
-
由 Vishnu Atrai 提交于
-
- 11 2月, 2012 1 次提交
-
-
由 Karunakar (Ruby) 提交于
-
- 01 2月, 2012 1 次提交
-
-
由 Juanjo Bazán 提交于
And added NullRelation class implementing the null object pattern for the `Relation` class.
-
- 17 1月, 2012 6 次提交
-
-
由 Jon Leighton 提交于
See the CHANGELOG for details. Fixes #950.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
This reverts commit c99d507f.
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 06 11月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 14 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
For consistency with find_or_initialize_by. Also remove first_or_build alias.
-
- 10 9月, 2011 1 次提交
-
-
由 Arun Agrawal 提交于
-
- 04 9月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 0df27c98. Reverted due to failing test, see #2845.
-
- 01 9月, 2011 1 次提交
-
-
由 Joshua Wehner 提交于
Replace split on comma with a regexp that will reverse all ASC/DESC specifically
-
- 31 8月, 2011 2 次提交
-
-
由 Raimonds Simanovskis 提交于
Last two asserts in this test assume that all_comments are ordered by posts.id and then by comments.id therefore additional ordering is added. Without it test was failing on Oracle which returned results in different order.
-
由 Andrés Mejía 提交于
This let's you write things like: User.where(:first_name => "Scarlett").first_or_create!(:last_name => "Johansson", :hot => true) Related to #2420.
-
- 21 8月, 2011 2 次提交
-
-
由 Ernie Miller 提交于
-
由 Ernie Miller 提交于
-
- 16 8月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 14 8月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 9d396ee8, reversing changes made to fa2bfd83. Reason: the change broke the build.
-
由 Samer Masry 提交于
-
由 Franck Verrot 提交于
Simplify the test by using id and name. `id` will be the only real sort criteria in any case as it's unique.
-