OSDN Git Service

picture's test are all green
[pettanr/pettanr.git] / app / models / artist.rb
1 class Artist < ActiveRecord::Base
2   belongs_to :author
3   has_many :original_pictures
4   
5   def self.find_by_author author
6     Artist.find( :first, :conditions => ['author_id = ?', author.id])
7   end
8   
9 end