Sha256: b53e5701112116fc75a8008bc57a0866b51857c058802689c8fc9b055a4df815
Contents?: true
Size: 309 Bytes
Versions: 6
Compression:
Stored size: 309 Bytes
Contents
class <%= association_class_name(plural_name) %> < <%= parent_class_name.classify %> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> <% [name, group_name, user_name].sort.each do |ref_name| -%> belongs_to :<%= ref_name %> <% end -%> end
Version data entries
6 entries across 6 versions & 1 rubygems