OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b4b502d65b8c24076a60edde9a1f992b1328086d
[pettanr/pettanr.git]
/
app
/
models
/
comic.rb
1
class Comic < ActiveRecord::Base
2
has_many :panels, :dependent => :destroy
3
4
def own? author
5
return false unless author
6
self.author_id == author.id
7
end
8
9
end