lib/annotate/annotate_models.rb in doubledrones-annotate-2.4.0.1 vs lib/annotate/annotate_models.rb in doubledrones-annotate-2.4.0.2

- old
+ new

@@ -125,10 +125,10 @@ if old_header == new_header false else # Remove old schema info - old_content.sub!(/^# #{COMPAT_PREFIX}.*?\n(#.*\n)*\n/, '') + old_content.sub!(/^# #{COMPAT_PREFIX}.*?\n(#.*\n)*/, '') # Write it back new_content = options[:position] == 'before' ? (info_block + old_content) : (old_content + info_block) File.open(file_name, "wb") { |f| f.puts new_content }