Removed default sorting scope to avoid problems with group_by
This commit is contained in:
parent
a153391615
commit
d4f3c2ecc5
1 changed files with 3 additions and 3 deletions
|
|
@ -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>' },
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue