Enforce eager loading of backreferencing to avoid wasteful SQL queries

This commit is contained in:
Christoph Haas 2013-08-07 21:37:14 +02:00
parent 20a627a270
commit 78b8f594af
2 changed files with 2 additions and 6 deletions

View file

@ -1,3 +1,3 @@
class Package < ActiveRecord::Base
has_many :screenshots
has_many :screenshots, :inverse_of=>:package
end