- 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>
-
- 18 2月, 2011 2 次提交
-
-
由 Jon Leighton 提交于
Allow building and then later saving has_many :through records, such that the join record is automatically saved too. This requires the :inverse_of option to be set on the source association in the join model. See the CHANGELOG for details. [#4329 state:resolved]
-
由 Jon Leighton 提交于
Ensure that association_ids uses the correct attribute where the association is a has_many :through with a :primary_key option on the source reflection. [#6376 state:resolved]
-
- 14 2月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Add interpolation of association conditions back in, in the form of proc { ... } rather than instance_eval-ing strings
-
- 08 2月, 2011 3 次提交
-
-
由 Jon Leighton 提交于
Correctly update counter caches on deletion for has_many :through [#2824 state:resolved]. Also fixed a bunch of other counter cache bugs in the process, as once I fixed this one others started appearing like nobody's business.
-
由 Jon Leighton 提交于
Support the :dependent option on has_many :through associations. For historical and practical reasons, :delete_all is the default deletion strategy employed by association.delete(*records), despite the fact that the default strategy is :nullify for regular has_many. Also, this only works at all if the source reflection is a belongs_to. For other situations, you should directly modify the through association.
-
由 Jon Leighton 提交于
Make record.association.destroy(*records) on habtm and hm:t only delete records in the join table. This is to make the destroy method more consistent across the different types of associations. For more details see the CHANGELOG entry.
-
- 30 1月, 2011 1 次提交
-
-
由 Jon Leighton 提交于
Has many through - It is not necessary to manually merge in the conditions hash for the through record, because the creation is done directly on the through association, which will already handle setting the conditions.
-
- 13 1月, 2011 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 24 12月, 2010 7 次提交
-
-
由 Jon Leighton 提交于
If a has_many goes :through a belongs_to, and the foreign key of the belongs_to changes, then the has_many should be considered stale.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Revert "Optimize <association>_ids for hm:t with belongs_to source". The optimisation has too many edge cases, such as when the reflection, source reflection, or through reflection has conditions, orders, etc. [#6153 state:resolved] This reverts commit 373b053d. Conflicts: activerecord/lib/active_record/associations.rb
-
由 Jon Leighton 提交于
Test demonstrating problem with foo.association_ids where it's a has_many :through with :conditions, with a belongs_to as the source reflection
-
由 Jon Leighton 提交于
When a has_many association is not :uniq, appending the same record multiple times should append it to the @target multiple times [#5964 state:resolved]
-
由 Michał Łomnicki 提交于
-
由 Szymon Nowak 提交于
Fix creation of has_many through records with custom primary_key option on belongs_to [#2990 state:resolved]
-
- 23 12月, 2010 1 次提交
-
-
由 Raimonds Simanovskis 提交于
This is additional fix for commit ebc47465 Respect the default_scope on a join model when reading a through association which otherwise was failing on Oracle (as it returned fixture comments in different order).
-
- 21 12月, 2010 1 次提交
-
-
由 Jon Leighton 提交于
Fix problem where wrong keys are used in JoinAssociation when an association goes :through a belongs_to [#2801 state:resolved]
-
- 16 12月, 2010 7 次提交
-
-
由 Jon Leighton 提交于
Fix problem with duplicated records when a :uniq :through association is preloaded [#2447 state:resolved]
-
由 Jon Leighton 提交于
Verify that creating a has_many through record where there is a default_scope on the join model works correctly (creates the join record with the default scope applied)
-
由 Jon Leighton 提交于
-
由 Ernie Miller 提交于
-
由 Joe Hannon 提交于
-
由 Jon Leighton 提交于
Verify that creating a has_many through record where there is a default_scope on the join model works correctly (creates the join record with the default scope applied)
-
由 Jon Leighton 提交于
-
- 15 12月, 2010 2 次提交
-
-
由 Ernie Miller 提交于
-
由 Joe Hannon 提交于
-