1
0
Fork 0

Albums order fix

This commit is contained in:
magnolia-fan 2011-06-29 08:32:28 +04:00
parent bfd1cd3ff8
commit eed7ea685c
1 changed files with 1 additions and 1 deletions

View File

@ -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