We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 059409b commit 5f300a0Copy full SHA for 5f300a0
lib/generators/serializer/templates/serializer.rb
@@ -1,8 +1,8 @@
1
<% module_namespacing do -%>
2
class <%= class_name %>Serializer < <%= parent_class_name %>
3
attributes <%= attributes_names.map(&:inspect).join(", ") %>
4
-end
5
<% association_names.each do |attribute| -%>
6
has_one :<%= attribute %>
7
<% end -%>
+end
8
0 commit comments