- 24 5月, 2012 1 次提交
-
- 20 5月, 2012 1 次提交
-
-
由 Henrik Hodne 提交于
For future reference, this is the regex I used: ^\s*#\s*\n(?!\s*#). Replace with the first match, and voilà! Note that the regex matches a little bit too much, so you probably want to `git add -i .` and go through every single diff to check if it actually should be changed.
-
- 17 5月, 2012 1 次提交
-
-
由 Radoslav Stankov 提交于
Record.from("(#{sub_query.to_sql})") -> Record.from(sub_query) Record.from("(#{sub_query.to_sql}) a") -> Record.from(sub_query, :a)
-
- 12 5月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
This helps bring the interfaces of CollectionProxy and Relation closer together, and reduces the delegation backflips we need to perform. For example, first_or_create is defined thus: class ActiveRecord::Relation def first_or_create(...) first || create(...) end end If CollectionProxy < Relation, then post.comments.first_or_create will hit the association's #create method which will actually add the new record to the association, just as post.comments.create would. With the previous delegation, post.comments.first_or_create expands to post.comments.scoped.first_or_create, where post.comments.scoped has no knowledge of the association.
-
- 13 4月, 2012 5 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
The main reason for this is that I want to separate the code that does the mutating from the code that does the cloning.
-
- 12 3月, 2012 1 次提交
-
-
由 Denis Jean 提交于
add test to show offset query_methods on mysql & mysql2 change test to cover public API
-
- 07 2月, 2012 1 次提交
-
-
由 Rohit Arondekar 提交于
-
- 06 2月, 2012 1 次提交
-
-
由 Rohit Arondekar 提交于
-
- 02 2月, 2012 2 次提交
-
-
由 Vijay Dev 提交于
-
由 Carlos Antonio da Silva 提交于
-
- 01 2月, 2012 1 次提交
-
-
由 Juanjo Bazán 提交于
And added NullRelation class implementing the null object pattern for the `Relation` class.
-
- 20 1月, 2012 1 次提交
-
-
由 Vijay Dev 提交于
Also, fixed the bit about returning AM::MissingAttributeError. This seems to be fixed earlier in 3-2-stable only.
-
- 17 1月, 2012 4 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 10 1月, 2012 1 次提交
-
-
由 Matt Jones 提交于
-
- 04 1月, 2012 1 次提交
-
-
- 06 11月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 20 9月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 18 9月, 2011 1 次提交
-
-
由 Ryan Bigg 提交于
-
- 15 9月, 2011 1 次提交
-
-
由 Vijay Dev 提交于
-
- 14 9月, 2011 1 次提交
-
-
由 Ryan Bigg 提交于
-
- 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
-
- 29 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
The join_nodes must be passed to the JoinDependency initializer and therefore counted by the alias tracker. This is because the association_joins are aliased on initialization and then the tables are cached, so it is no use to alias the join_nodes later. Fixes #2556.
-
- 14 8月, 2011 4 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 9d396ee8, reversing changes made to fa2bfd83. Reason: the change broke the build.
-
由 Samer Masry 提交于
-
由 Piotr Sarnacki 提交于
This reverts commit 04cc446d. I reverted it because apparently we want to use: select([:a, :b]) instead of select(:a, :b), but there was no tests for that form.
-
由 Sławosz Sławiński 提交于
-
- 28 7月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
This reverts commit 9d396ee8, reversing changes made to fa2bfd83. Reason: the change broke the build.
-
由 Samer Masry 提交于
-
- 26 7月, 2011 2 次提交
-
-
由 Piotr Sarnacki 提交于
This reverts commit 04cc446d. I reverted it because apparently we want to use: select([:a, :b]) instead of select(:a, :b), but there was no tests for that form.
-
由 Sławosz Sławiński 提交于
-
- 24 7月, 2011 1 次提交
-
-
由 Franck Verrot 提交于
-
- 09 7月, 2011 1 次提交
-
-
由 Akira Matsuda 提交于
having raises NoMethodError: undefined method `empty?' when a Fixnum or Date/Time were passed via varargs
-