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
/
panel.rb
diff --git
a/app/models/panel.rb
b/app/models/panel.rb
index
f60b801
..
888d7b5
100644
(file)
--- a/
app/models/panel.rb
+++ b/
app/models/panel.rb
@@
-1,5
+1,6
@@
class Panel < ActiveRecord::Base
belongs_to :comic
+ belongs_to :author
has_many :panel_pictures, :dependent => :destroy
has_many :balloons, :dependent => :destroy
accepts_nested_attributes_for :panel_pictures, :allow_destroy => true