1. 18 11月, 2012 2 次提交
  2. 17 11月, 2012 4 次提交
  3. 16 11月, 2012 1 次提交
  4. 14 11月, 2012 1 次提交
  5. 13 11月, 2012 2 次提交
  6. 12 11月, 2012 2 次提交
  7. 10 11月, 2012 1 次提交
  8. 09 11月, 2012 5 次提交
  9. 05 11月, 2012 1 次提交
  10. 04 11月, 2012 2 次提交
  11. 03 11月, 2012 4 次提交
  12. 02 11月, 2012 1 次提交
    • C
      Fix issue with collection associations and first(n)/last(n) · 694334c3
      Carlos Antonio da Silva 提交于
      When calling first(n) or last(n) in a collection, Active Record was
      improperly trying to set the inverse of instance in case that option
      existed. This change was introduced by
      fdf4eae5.
      
      In such cases we don't need to do that "manually", since the way
      collection will be loaded will already handle that, so we just skip
      setting the inverse association when any argument is given to
      first(n)/last(n).
      
      The test included ensures that these scenarios will have the inverse of
      instance set properly.
      
      Fixes #8087, Closes #8094.
      
      Squashed cherry-pick from d37d40b2 and c368b660.
      
      Conflicts:
      	activerecord/CHANGELOG.md
      	activerecord/lib/active_record/associations/collection_association.rb
      694334c3
  13. 31 10月, 2012 4 次提交
  14. 30 10月, 2012 3 次提交
  15. 29 10月, 2012 7 次提交