diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 17:22:28 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-10-02 17:22:28 -0700 |
commit | cb0aa02e74d2ee3c79adebaf1657e7544c08018e (patch) | |
tree | 79a02610115ae4bc7863a3a5d5c820a2669d65d5 /activerecord/test/cases | |
parent | da06ae88abeaadb560e9ba01621f108f01cf7158 (diff) | |
download | rails-cb0aa02e74d2ee3c79adebaf1657e7544c08018e.tar.gz rails-cb0aa02e74d2ee3c79adebaf1657e7544c08018e.tar.bz2 rails-cb0aa02e74d2ee3c79adebaf1657e7544c08018e.zip |
preheat habtm column cache
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/associations/nested_through_associations_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/associations/nested_through_associations_test.rb b/activerecord/test/cases/associations/nested_through_associations_test.rb index 95f49a37eb..8ef351cda8 100644 --- a/activerecord/test/cases/associations/nested_through_associations_test.rb +++ b/activerecord/test/cases/associations/nested_through_associations_test.rb @@ -242,6 +242,7 @@ class NestedThroughAssociationsTest < ActiveRecord::TestCase end def test_has_many_through_has_and_belongs_to_many_with_has_many_source_reflection_preload + Category.includes(:post_comments).to_a # preheat cache categories = assert_queries(4) { Category.includes(:post_comments).to_a.sort_by(&:id) } greetings, more = comments(:greetings), comments(:more_greetings) |