1 class Author < Peta::Owner
9 validates :name, :presence => true, :length => {:maximum => 30}
10 validates :user_id, :numericality => true, :existence => {:both => false}
12 scope :find_index, -> do
17 self.name = 'no name' if self.name.blank?
22 {:include => {:user => {:artist => {}}} }