Fixed eager loading of packages/screenshots

This commit is contained in:
Christoph Haas 2013-08-21 23:24:07 +02:00
parent 93177ab578
commit a5b31a2dcc
3 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,6 @@
class Screenshot < ActiveRecord::Base
belongs_to :package, :inverse_of=>:screenshots
default_scope {
order('uploaddatetime DESC')
}