Removed default sorting scope to avoid problems with group_by

This commit is contained in:
Christoph Haas 2016-04-14 16:49:29 +02:00
parent a153391615
commit d4f3c2ecc5

View file

@ -1,9 +1,9 @@
class Screenshot < ActiveRecord::Base class Screenshot < ActiveRecord::Base
belongs_to :package, :inverse_of=>:screenshots belongs_to :package, :inverse_of=>:screenshots
default_scope { # default_scope {
order('created_at DESC') # order('created_at DESC')
} # }
has_attached_file :image, has_attached_file :image,
styles: { :large => '800x600>', :thumb => '160x120>' }, styles: { :large => '800x600>', :thumb => '160x120>' },