Added tests.

This commit is contained in:
José Valim
2011-12-01 08:19:14 +01:00
parent c6eee6457f
commit 5a230e8e66
11 changed files with 715 additions and 25 deletions

View File

@@ -0,0 +1,9 @@
<% module_namespacing do -%>
class <%= class_name %>Serializer < <%= parent_class_name %>
<% if attributes.any? -%> attributes <%= attributes_names.map(&:inspect).join(", ") %>
<% end -%>
<% association_names.each do |attribute| -%>
has_one :<%= attribute %>
<% end -%>
end
<% end -%>