- 28 12月, 2010 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 27 12月, 2010 13 次提交
-
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
-
由 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 提交于
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 1 次提交
-
-
由 Aaron Patterson 提交于
-
- 24 12月, 2010 5 次提交
-
-
由 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 提交于
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]
-
- 21 12月, 2010 10 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
has_many associations with :dependent => :delete_all should update the counter cache when deleting records
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Fix problem where wrong keys are used in JoinAssociation when an association goes :through a belongs_to [#2801 state:resolved]
-
由 Jon Leighton 提交于
Remove unnecessary overloaded methods create, create! and create_record from HasAndBelongsToManyAssociation
-
由 Jon Leighton 提交于
-
由 Jon Leighton 提交于
Delete create, create! and create_record from HasManyThroughAssociation in exchange for more generic versions in AssociationCollection
-
由 Jon Leighton 提交于
Specify insert_record with NotImplementedError in AssociationCollection, to indicate that subclasses should implement it. Also add save_record to reduce duplication.
-
- 16 12月, 2010 10 次提交
-
-
由 Jon Leighton 提交于
-
由 Pavel Gorbokon 提交于
* rename method names (actually in tests) * rename instance variable @_named_scopes_cache to @_scopes_cache * rename references in doc comments * don't touch CHANGELOG :)
-
由 Jon Leighton 提交于
-
由 Ernie Miller 提交于
-
由 Aaron Patterson 提交于
class names are already strings, so we do not need to call to_s on the strings that are already strings
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-