- 18 1月, 2013 1 次提交
-
-
由 robertomiranda 提交于
-
- 04 1月, 2013 1 次提交
-
-
- 15 12月, 2012 1 次提交
-
-
由 Matthew Robertson 提交于
This commit fixes reported issue #7630 in which counter caches were not being updated properly when replacing has_many_through relationships
-
- 12 11月, 2012 1 次提交
-
-
由 Vipul A M 提交于
-
- 10 10月, 2012 1 次提交
-
-
由 Yves Senn 提交于
-
- 05 10月, 2012 2 次提交
-
-
由 Santiago Pastorino 提交于
This reverts commit abf8de85. We should take a deeper look to those cases flat_map doesn't do deep flattening. irb(main):002:0> [[[1,3], [1,2]]].map{|i| i}.flatten => [1, 3, 1, 2] irb(main):003:0> [[[1,3], [1,2]]].flat_map{|i| i} => [[1, 3], [1, 2]]
-
由 Santiago Pastorino 提交于
-
- 04 10月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
Patches `CollectionAssociation#count` to return 0 without querying if the parent record is new. Consider the following code: class Account has_many :dossiers end class Dossier belongs_to :account end a = Account.new a.dossiers.build # before patch a.dossiers.count # SELECT COUNT(*) FROM "dossiers" WHERE "dossiers"."account_id" IS NULL # => 0 # after a.dosiers.count # fires without sql query # => 0 Fixes #1856.
-
- 17 9月, 2012 2 次提交
-
-
由 Ernie Miller 提交于
If assigning to a has_many :through collection against an unsaved object using the collection=[<array_of_items>] syntax, the join models were not properly created, previously.
-
由 Guillermo Iguaran 提交于
-
- 27 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
Previously it returned an Array. If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This is more explicit. In most cases this should not break existing code, since Relations use method_missing to delegate unknown methods to #to_a anyway.
-
- 25 7月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
Closes #1190
-
- 21 7月, 2012 1 次提交
-
-
由 Jon Leighton 提交于
interpolation is no longer a thing separate from "normal" assoc conditions.
-
- 27 4月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 08 3月, 2012 2 次提交
-
-
由 Rafael Mendonça França 提交于
-
由 kuahyeow 提交于
Add tests to test that through associations are not readonly, and we can update the records we retrive from the association
-
- 06 3月, 2012 1 次提交
-
-
由 Rafael Mendonça França 提交于
:strict
-
- 26 1月, 2012 1 次提交
-
-
由 Aaron Patterson 提交于
another value has been specified).
-
- 17 1月, 2012 2 次提交
-
-
由 Jon Leighton 提交于
See the CHANGELOG for details. Fixes #950.
-
由 Jon Leighton 提交于
This reverts commit c99d507f.
-
- 29 12月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 18 12月, 2011 1 次提交
-
-
由 Sergey Nartimov 提交于
when fetching ids for a collection, bypass preloading to avoid the unnecessary performance overhead
-
- 03 11月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
If a record is removed from a has_many :through, all of the join records relating to that record should also be removed from the through association's target. (Previously the records were removed in the database, but only one was removed from the in-memory target array.)
-
由 Jon Leighton 提交于
Fixes #3425.
-
由 Jon Leighton 提交于
Fixes creating records in a through association with a polymorphic source type.
-
- 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.
-
- 15 8月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 07 7月, 2011 1 次提交
-
-
由 Anatoliy Lysenko 提交于
when condtions references tables from includes. Test fail because of invalid sql: ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: comments.id: SELECT "posts".id FROM "posts" INNER JOIN "readers" ON "posts"."id" = "readers"."post_id" WHERE "readers"."person_id" = 1 AND (comments.id is null) Bug described in github#925 This commit will revert fix from https://github.com/rails/rails/commit/3436fdfc12d58925e3d981e0afa61084ea34736c , but tests is ok. Bug described in #6569 ticket.
-
- 07 6月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 05 6月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Refactor Active Record test connection setup. Please see the RUNNING_UNIT_TESTS file for details, but essentially you can now configure things in test/config.yml. You can also run tests directly via the command line, e.g. ruby path/to/test.rb (no rake needed, uses default db connection from test/config.yml). This will help us fix the CI by enabling us to isolate the different Rails versions to different databases.
-
- 25 5月, 2011 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Joey Butler 提交于
-
- 01 5月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 18 4月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
-
- 28 3月, 2011 2 次提交
-
-
由 Sebastian Martinez 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
由 Sebastian Martinez 提交于
This reverts commit 45c233ef. Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
- 26 3月, 2011 1 次提交
-
-
由 Sebastian Martinez 提交于
Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-