1. 02 11月, 2012 2 次提交
    • S
      memoize calculated ip without additional variable · 43aa2d30
      Sergey Nartimov 提交于
      There is no need in additional `@calculated_ip` instance variable.
      43aa2d30
    • 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
  2. 01 11月, 2012 8 次提交
  3. 31 10月, 2012 14 次提交
  4. 30 10月, 2012 8 次提交
  5. 29 10月, 2012 8 次提交