Albums order fix
This commit is contained in:
parent
bfd1cd3ff8
commit
eed7ea685c
|
@ -1,3 +1,3 @@
|
|||
class Artist < ActiveRecord::Base
|
||||
has_many :albums, :order => 'pic_url DESC, year ASC, id ASC', :dependent => :destroy
|
||||
has_many :albums, :order => '(pic_url!="" AND pic_url IS NOT NULL) DESC, year ASC, id ASC', :dependent => :destroy
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue