- 27 12月, 2010 12 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Associations: DRY up the code which is generating conditions, and make it all use arel rather than SQL strings
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Set the create scope to an empty hash in ThroughAssociationScope. For reasoning please see the inline code comments.
-
由 Jon Leighton 提交于
Use conditionals and implicit returns rather than explicit returns and postfix ifs (it's easier to read)
-
由 Jon Leighton 提交于
Remove has_cached_counter? and cached_counter_attribute_name from HasManyThroughAssociation, as the exact same methods are inherited from HasManyAssociation
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Use the through association proxy for operations on the through record, so that those operations are automatically scoped and therefore construct_join_attributes does not need to use construct_owner_attributes.
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
- 26 12月, 2010 9 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 25 12月, 2010 4 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 24 12月, 2010 12 次提交
-
-
由 oleg dashevskii 提交于
Verify that there is no unwanted implicit readonly set on Model.has_many_through.find(id) [#5442 state:resolved]
-
由 Jon Leighton 提交于
Raise an error for associations which try to go :through a polymorphic association [#6212 state:resolved]
-
由 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 提交于
Improved strategy for updating a belongs_to association when the foreign key changes. Rather than resetting each affected association when the foreign key changes, we should lazily check for 'staleness' (where fk does not match target id) when the association is accessed.
-
由 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]
-
由 Will Bryant 提交于
-
由 Jon Leighton 提交于
-
- 23 12月, 2010 3 次提交
-
-
由 Aaron Patterson 提交于
-
由 Raimonds Simanovskis 提交于
previously primary key value was always assigned nil which caused Oracle enhanced adapter failing tests
-
由 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).
-