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
import all source code
[pettanr/pettanr.git]
/
app
/
models
/
balloon_template.rb
diff --git a/app/models/balloon_template.rb
b/app/models/balloon_template.rb
new file mode 100644
(file)
index 0000000..
d4e3d5e
--- /dev/null
+++ b/
app/models/balloon_template.rb
@@ -0,0
+1,6
@@
+class BalloonTemplate < ActiveRecord::Base
+ belongs_to :speach_balloon
+ has_many :speach_templates, :dependent => :destroy
+ belongs_to :resource_picture
+ accepts_nested_attributes_for :speach_templates
+end