OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
import all source code
[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