mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-24 14:56:50 +00:00
fix generators template bug
This commit is contained in:
parent
059409b0b9
commit
5f300a0d42
@ -1,8 +1,8 @@
|
|||||||
<% module_namespacing do -%>
|
<% module_namespacing do -%>
|
||||||
class <%= class_name %>Serializer < <%= parent_class_name %>
|
class <%= class_name %>Serializer < <%= parent_class_name %>
|
||||||
attributes <%= attributes_names.map(&:inspect).join(", ") %>
|
attributes <%= attributes_names.map(&:inspect).join(", ") %>
|
||||||
end
|
|
||||||
<% association_names.each do |attribute| -%>
|
<% association_names.each do |attribute| -%>
|
||||||
has_one :<%= attribute %>
|
has_one :<%= attribute %>
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
end
|
||||||
<% end -%>
|
<% end -%>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user