oldhaven/app/models/artist.rb

4 lines
155 B
Ruby
Raw Normal View History

2011-06-14 20:05:12 +04:00
class Artist < ActiveRecord::Base
2011-06-29 08:32:28 +04:00
has_many :albums, :order => '(pic_url!="" AND pic_url IS NOT NULL) DESC, year ASC, id ASC', :dependent => :destroy
2011-06-14 20:05:12 +04:00
end