Sha256: faf7d9a7d93c479ec68be6e6fc9c738a41179589c899202b895bf487a4f67f67
Contents?: true
Size: 531 Bytes
Versions: 4
Compression:
Stored size: 531 Bytes
Contents
class <%= class_name %> < <%= parent_class_name.classify %> <% attributes.select {|attr| attr.reference? }.each do |attribute| -%> belongs_to :<%= attribute.name %> <% end -%> structure do <% unless attributes.blank? max_field_length = attributes.collect { |attribute| attribute.name.to_s}.max { |name| name.length }.length attributes.reject { |attr| attr.reference? }.each do |attribute| -%> <%= attribute.name.to_s.ljust(max_field_length) %> :<%= attribute.type %> <% end end -%> timestamps end end
Version data entries
4 entries across 4 versions & 1 rubygems