rails_generators/hobo_model/templates/model.rb in hobo-0.8.2 vs rails_generators/hobo_model/templates/model.rb in hobo-0.8.3
- old
+ new
@@ -2,10 +2,10 @@
hobo_model # Don't put anything above this
fields do
<% for attribute in attributes -%>
- <%= attribute.name %> :<%= attribute.type %>
+ <%= "%-#{max_attribute_length}s" % attribute.name %> :<%= attribute.type %>
<% end -%>
timestamps
end