diff --git a/lib/gitorious/diff/inline_table_callback.rb b/lib/gitorious/diff/inline_table_callback.rb index fcbf0ada..f9ade950 100644 --- a/lib/gitorious/diff/inline_table_callback.rb +++ b/lib/gitorious/diff/inline_table_callback.rb @@ -16,6 +16,7 @@ def comments=(comments) end def addline(line) + line.define_singleton_method(:offsets) { [] } # TODO %Q{} + render_comment_count(line) + @@ -26,6 +27,7 @@ def addline(line) end def remline(line) + line.define_singleton_method(:offsets) { [] } # TODO %Q{} + render_comment_count(line) + @@ -78,6 +80,7 @@ def render_comment_count(line) end def render_comments_for(line) + line.define_singleton_method(:offsets) { [] } # TODO return "" unless @comment_callback return "" if @comment_callback.comment_count_ending_on_line(line).zero? %Q{