OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
list browser created
[pettanr/pettanr.git]
/
app
/
models
/
comic.rb
1
class Comic < ActiveRecord::Base
2
has_many :panels, :dependent => :destroy
3
belongs_to :author
4
5
def own? author
6
return false unless author
7
self.author_id == author.id
8
end
9
10
def disp_editable
11
editable == 1 ? 'O' : 'X'
12
end
13
14
end