blob: 21ae29e9f21b5492fcfadfba3a52e7117f160e8c (
plain) (
blame)
1
2
3
4
5
|
class <%= class_name %> < <%= parent_class_name.classify %>
<% attributes.select {|attr| attr.reference? }.each do |attribute| -%>
belongs_to :<%= attribute.name %>
<% end -%>
end
|