blob: 056f55470cb35ad35483fc25bad36195ea57cb08 (
plain) (
blame)
1
2
3
4
5
6
7
|
<% module_namespacing do -%>
class <%= class_name %> < <%= parent_class_name.classify %>
<% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
belongs_to :<%= attribute.name %><%= ', polymorphic: true' if attribute.polymorphic? %>
<% end -%>
end
<% end -%>
|