1. 19 5月, 2010 1 次提交
  2. 10 4月, 2010 1 次提交
  3. 30 3月, 2010 2 次提交
  4. 28 3月, 2010 1 次提交
  5. 09 3月, 2010 1 次提交
  6. 10 8月, 2009 1 次提交
  7. 07 8月, 2009 1 次提交
  8. 16 7月, 2009 1 次提交
  9. 12 3月, 2009 1 次提交
  10. 09 3月, 2009 1 次提交
  11. 07 3月, 2009 1 次提交
  12. 27 2月, 2009 1 次提交
  13. 14 10月, 2008 1 次提交
  14. 10 10月, 2008 1 次提交
  15. 13 9月, 2008 1 次提交
  16. 01 8月, 2008 1 次提交
  17. 11 6月, 2008 1 次提交
  18. 01 6月, 2008 2 次提交
    • T
      belongs_to polymorphic association assignments update the foreign_id and... · 0580b31b
      Tim Harper 提交于
      belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not.
      
      fixes the following scenarios:
      * I have validates_inclusion_of on the type field for a polymorphic belongs_to association.  I assign a new record to the model's polymorphic relationship of the proper type.  validation fails because the type field has not been updated.
      
      * I replace the value for a ppolymorphic association to a new record of another class.  The type field still says its the previous class, and the id field points to the previous record as well.
      
      [#191 state:closed]
      0580b31b
    • T
      belongs_to polymorphic association assignments update the foreign_id and... · aef47dcf
      Tim Harper 提交于
      belongs_to polymorphic association assignments update the foreign_id and foreign_type fields regardless of whether the record being assigned is new or not.
      
      fixes the following scenarios:
      * I have validates_inclusion_of on the type field for a polymorphic belongs_to association.  I assign a new record to the model's polymorphic relationship of the proper type.  validation fails because the type field has not been updated.
      
      * I replace the value for a ppolymorphic association to a new record of another class.  The type field still says its the previous class, and the id field points to the previous record as well.
      aef47dcf
  19. 24 5月, 2008 1 次提交
  20. 20 5月, 2008 1 次提交
  21. 11 4月, 2008 1 次提交
  22. 10 4月, 2008 1 次提交
  23. 06 4月, 2008 1 次提交