Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove trailing spaces from schema info

  • Loading branch information...
commit cabc32a69e8a787a22a11a47481f122ac2a3a085 1 parent a0f90fa
roTuKa authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/annotate_models.rb
View
2  lib/annotate_models.rb
@@ -59,7 +59,7 @@ def self.annotate_column(col, klass, max_size)
else
col_type << "(#{col.limit})" if col.limit
end
- sprintf("# %-#{max_size}.#{max_size}s:%-15.15s %s\n", col.name, col_type, attrs.join(", "))
+ sprintf("# %-#{max_size}.#{max_size}s:%-15.15s %s", col.name, col_type, attrs.join(", ")).rstrip << "\n"
end
# Add a schema block to a file. If the file already contains
Please sign in to comment.
Something went wrong with that request. Please try again.