public
Description: Annotate ActiveRecord models as a gem
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/ctran/annotate_models.git
Don't leave trailing whitespace in the annotations.
dustin (author)
Fri May 02 13:23:47 -0700 2008
ctran (committer)
Fri May 02 21:15:12 -0700 2008
commit  4f3e1394f392dda02b3c0b42640fc2dfab85e8ca
tree    0dfd83314dd77415e162af65b9352fff381ab07e
parent  16224621f63794b80caf64fa857cc2b486379611
...
39
40
41
42
 
43
44
45
...
39
40
41
 
42
43
44
45
0
@@ -39,7 +39,7 @@ module AnnotateModels
0
         else
0
           col_type << "(#{col.limit})" if col.limit
0
         end
0
- info << sprintf("# %-#{max_size}.#{max_size}s:%-15.15s %s\n", col.name, col_type, attrs.join(", "))
0
+ info << sprintf("# %-#{max_size}.#{max_size}s:%-15.15s %s", col.name, col_type, attrs.join(", ")).rstrip + "\n"
0
       end
0
 
0
       info << "#\n\n"

Comments

    No one has commented yet.