Enforce eager loading of backreferencing to avoid wasteful SQL queries
This commit is contained in:
parent
20a627a270
commit
78b8f594af
2 changed files with 2 additions and 6 deletions
|
|
@ -1,3 +1,3 @@
|
|||
class Package < ActiveRecord::Base
|
||||
has_many :screenshots
|
||||
has_many :screenshots, :inverse_of=>:package
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue