OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
list browser created
[pettanr/pettanr.git]
/
app
/
models
/
comic.rb
diff --git
a/app/models/comic.rb
b/app/models/comic.rb
index
b4b502d
..
ab882cf
100644
(file)
--- a/
app/models/comic.rb
+++ b/
app/models/comic.rb
@@
-1,9
+1,14
@@
class Comic < ActiveRecord::Base
has_many :panels, :dependent => :destroy
+ belongs_to :author
def own? author
return false unless author
self.author_id == author.id
end
+ def disp_editable
+ editable == 1 ? 'O' : 'X'
+ end
+
end