lib/tdiary/comment_manager.rb in tdiary-5.0.14 vs lib/tdiary/comment_manager.rb in tdiary-5.1.0

- old
+ new

@@ -12,10 +12,10 @@ @comments = [] end public def add_comment( com ) - @comments << com + (@comments << com).sort!{|a, b| a.date <=> b.date} if not @last_modified or @last_modified < com.date @last_modified = com.date end com end