1. 20 3月, 2015 11 次提交
  2. 19 3月, 2015 27 次提交
  3. 18 3月, 2015 2 次提交
    • A
      Add a new-line to the end of route method generated code. · 2f23f97b
      Arthur Neves 提交于
      Fix regression on route method that was added by
      bac812a7. The regression was that when
      calling the `route` method, we were not appending a \n anymore.
      
      [fixes #19316]
      2f23f97b
    • E
      Improve test for leaky scope chain · 4df806f9
      eileencodes 提交于
      This is a better test for 51660f01. It is testing that the SQL is the
      same before and after the previously leaky scope is called. Before if
      `hotel.drink_designers` was called first then `hotel.recipes` would
      incorrectly get the scope applied. We want to be sure that the
      polymorphic hm:t association is not leaking into or affecting the
      SQL for the hm:t association on `Hotel`.
      
      The reason I couldn't do this before was because there was an issue with
      the SQL getting cached and wanted to resolve that later and then fix the
      test to be better. Because of the caching, this test requires that
      `Hotel.reflect_on_association(:recipes).clear_association_scope_cache`
      be called after the first call to `hotel.recipes` to clear the
      assocation scope chain and not interfere with the rest of the test.
      4df806f9