OSDN Git Service

add peta model_manifest
[pettanr/pettanr.git] / lib / manifest / model / association.rb
index fd4e8ec..f4886fc 100644 (file)
@@ -43,11 +43,11 @@ module Manifest
         @model.model_manifest
       end
       
-      def child_element_name child_model_manifest
-        if @has_one[child_model_manifest.model_name]
-          child_model_manifest.model_name
+      def child_element_name child_model
+        if @has_one[child_model.item_name]
+          child_model.item_name
         else
-          child_model_manifest.table_name
+          child_model.table_name
         end
       end