db045dbbf6
b1f3c6e6ec
9223a91911
1
2
3 4
5
class <%= class_name %> < ActiveRecord::Base <% attributes.select(&:reference?).each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> end