Sorting screenshots from new to old by default
This commit is contained in:
parent
6e9ff16913
commit
856b43d067
1 changed files with 1 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
class Screenshot < ActiveRecord::Base
|
||||
belongs_to :package, :inverse_of=>:screenshots
|
||||
default_scope order('uploaddatetime DESC')
|
||||
|
||||
def image_url(size)
|
||||
# TODO: Prevents proper eager loading somehow...
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue