Commit ff1131da by Cuong Tran

Merge pull request #76 from ffmike/master

Fixed a bug in "after" annotations
parents a43c08f0 81cd25a0
......@@ -146,7 +146,7 @@ module AnnotateModels
if new_content == old_content
old_content.sub!(encoding, '')
new_content = options[:position] == 'after' ?
(encoding_header + (old_content =~ /\n$/ ? old_content : old_content + '\n') + info_block) :
(encoding_header + (old_content =~ /\n$/ ? old_content : old_content + "\n") + info_block) :
(encoding_header + info_block + old_content)
end
......
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