1. 15 12月, 2011 1 次提交
  2. 29 11月, 2011 1 次提交
  3. 28 11月, 2011 1 次提交
  4. 13 9月, 2011 1 次提交
    • J
      Raise error when using write_attribute with a non-existent attribute. · 50d395f9
      Jon Leighton 提交于
      Previously we would just silently write the attribute. This can lead to
      subtle bugs (for example, see the change in AutosaveAssociation where a
      through association would wrongly gain an attribute.
      
      Also, ensuring that we never gain any new attributes after
      initialization will allow me to reduce our dependence on method_missing.
      50d395f9
  5. 07 7月, 2011 1 次提交
  6. 24 5月, 2011 1 次提交
  7. 05 3月, 2011 1 次提交
  8. 04 3月, 2011 1 次提交
  9. 22 2月, 2011 1 次提交
  10. 18 2月, 2011 1 次提交
  11. 14 2月, 2011 1 次提交
  12. 08 2月, 2011 1 次提交
  13. 30 1月, 2011 1 次提交
  14. 04 1月, 2011 1 次提交
    • J
      Allow assignment on has_one :through where the owner is a new record [#5137 state:resolved] · a0be389d
      Jon Leighton 提交于
      This required changing the code to keep the association proxy for a belongs_to around, despite its target being nil. Which in turn required various changes to the way that stale target checking is handled, in order to support various edge cases (loaded target is nil then foreign key added, foreign key is changed and then changed back, etc). A side effect is that the code is nicer and more succinct.
      
      Note that I am removing test_no_unexpected_aliasing since that is basically checking that the proxy for a belongs_to *does* change, which is the exact opposite of the intention of this commit. Also adding various tests for various edge cases and related things.
      
      Phew, long commit message!
      a0be389d
  15. 01 1月, 2011 1 次提交
  16. 20 12月, 2010 1 次提交
  17. 16 12月, 2010 1 次提交
  18. 14 12月, 2010 1 次提交
  19. 28 11月, 2010 1 次提交
  20. 23 11月, 2010 1 次提交
  21. 20 11月, 2010 2 次提交
  22. 09 11月, 2010 1 次提交
  23. 30 10月, 2010 1 次提交
    • J
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc... · b82fab25
      Jon Leighton 提交于
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
      b82fab25
  24. 22 10月, 2010 1 次提交
  25. 18 10月, 2010 1 次提交
    • J
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc... · 78b8c51c
      Jon Leighton 提交于
      Refactoring: replace the mix of variables like @finder_sql, @counter_sql, etc with just a single scope hash (created on initialization of the proxy). This is now used consistently across all associations. Therefore, all you have to do to ensure finding/counting etc is done correctly is implement the scope correctly.
      78b8c51c
  26. 14 8月, 2010 4 次提交
  27. 13 8月, 2010 2 次提交
  28. 12 8月, 2010 2 次提交
  29. 10 8月, 2010 1 次提交
  30. 31 7月, 2010 2 次提交
  31. 26 7月, 2010 1 次提交
  32. 21 7月, 2010 1 次提交
  33. 18 7月, 2010 1 次提交