Album has_pic fix, production gems fix

This commit is contained in:
magnolia-fan
2011-06-30 09:29:24 +04:00
parent 13a233ac72
commit 31a1cb88e2
5 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -1,3 +1,3 @@
class Artist < ActiveRecord::Base
has_many :albums, :order => '(pic_url!="" AND pic_url IS NOT NULL) DESC, year ASC, id ASC', :dependent => :destroy
has_many :albums, :order => 'has_pic DESC, year ASC, id ASC', :dependent => :destroy
end