diff --git a/app/models/artist.rb b/app/models/artist.rb index cecf8df..59ffbc9 100644 --- a/app/models/artist.rb +++ b/app/models/artist.rb @@ -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