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
element
[pettanr/pettanr.git]
/
lib
/
manifest
/
model
/
association.rb
diff --git
a/lib/manifest/model/association.rb
b/lib/manifest/model/association.rb
index
f21d082
..
60e3118
100644
(file)
--- a/
lib/manifest/model/association.rb
+++ b/
lib/manifest/model/association.rb
@@
-43,6
+43,14
@@
module Manifest
@model.model_manifest
end
+ def child_element_name child_item_name
+ if @has_one[child_item_name]
+ child_model_manifest.model_name
+ else
+ child_model_manifest.table_name
+ end
+ end
+
end
end