1
0
Fork 0
oldhaven/rails/app/models/release_group.rb

7 lines
246 B
Ruby
Raw Normal View History

2011-04-03 18:32:27 +00:00
class ReleaseGroup < ActiveRecord::Base
set_table_name 'musicbrainz.bh_release_group'
def self.getArtistAlbums(artist_id)
ReleaseGroup.all(:conditions => ['artist_id = ? AND release_type=1', artist_id], :order => 'year ASC, id ASC')
end
end