Commit fffd1356 by Dmitry Lihachev

improved alignment in human class name

parent 3ec604a1
......@@ -43,8 +43,9 @@ module AnnotateModels
# the type (and length), and any optional attributes
def get_schema_info(klass, header, options = {})
info = "# #{header}\n#\n"
info << "# Table name: #{klass.table_name}\n#\n"
info << "# Table name: #{klass.table_name}\n"
info << "# Human name: #{klass.model_name.human}\n" unless klass.model_name.human(:default => "").blank?
info << "#\n"
max_size = klass.column_names.collect{|name| name.size}.max + 1
klass.columns.each do |col|
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment