public
Fork of ctran/annotate_models
Description: Annotate ActiveRecord models
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/JackDanger/annotate_models.git
When position is set to "after", include a newline before the schema.
dustin (author)
Fri May 02 20:38:59 -0700 2008
ctran (committer)
Fri May 02 21:15:12 -0700 2008
commit  8c8c3c58055c8659da55f5cc130552204f469dfd
tree    8ca848f15bdf352ac2c9879820ee790e102188bf
parent  4f3e1394f392dda02b3c0b42640fc2dfab85e8ca
...
62
63
64
65
 
66
67
68
...
62
63
64
 
65
66
67
68
0
@@ -62,7 +62,7 @@ module AnnotateModels
0
         content.sub!(/^# #{PREFIX}.*?\n(#.*\n)*\n/, '')
0
 
0
         # Write it back
0
- new_content = options[:position] == "after" ? (content + info_block) : (info_block + content)
0
+ new_content = options[:position] == "after" ? (content + "\n" + info_block) : (info_block + content)
0
         File.open(file_name, "w") { |f| f.puts new_content }
0
       end
0
     end

Comments

    No one has commented yet.