- 27 12月, 2010 13 次提交
-
-
由 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 提交于
-
由 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 12 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
由 Akira Matsuda 提交于
see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere [#6223 state:committed] Signed-off-by: NSantiago Pastorino <santiago@wyeworks.com>
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 25 12月, 2010 5 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
由 Santiago Pastorino 提交于
-
- 24 12月, 2010 10 次提交
-
-
由 Xavier Noria 提交于
-
-
由 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
-