Add the has_many_polymorphs plugin
[cs356-p2-videostore.git] / vendor / plugins / has_many_polymorphs / generators / tagging / templates / taggings.yml
diff --git a/vendor/plugins/has_many_polymorphs/generators/tagging/templates/taggings.yml b/vendor/plugins/has_many_polymorphs/generators/tagging/templates/taggings.yml
new file mode 100644 (file)
index 0000000..0cf13b9
--- /dev/null
@@ -0,0 +1,23 @@
+--- 
+<% if taggable_models.size > 1 -%>
+taggings_003: 
+  <%= parent_association_name -%>_id: "2"
+  id: "3"
+  taggable_type: <%= model_one %>
+  taggable_id: "1"                
+<% end -%>
+taggings_004: 
+  <%= parent_association_name -%>_id: "2"
+  id: "4"
+  taggable_type: <%= model_two %>
+  taggable_id: "2"
+taggings_001: 
+  <%= parent_association_name -%>_id: "1"
+  id: "1"
+  taggable_type: <%= model_two %>
+  taggable_id: "1"
+taggings_002: 
+  <%= parent_association_name -%>_id: "1"
+  id: "2"
+  taggable_type: <%= model_two %>
+  taggable_id: "2"