2016-06-20 13:15:44 -04:00
|
|
|
module NoteOnDiff
|
|
|
|
extend ActiveSupport::Concern
|
|
|
|
|
|
|
|
def diff_note?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def diff_file
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def diff_line
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def for_line?(line)
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-08-19 13:38:40 -04:00
|
|
|
def original_line_code
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-06-20 13:15:44 -04:00
|
|
|
def diff_attributes
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_be_award_emoji?
|
|
|
|
false
|
|
|
|
end
|
2016-08-30 11:30:42 -04:00
|
|
|
|
|
|
|
def to_discussion
|
|
|
|
Discussion.new([self])
|
|
|
|
end
|
2016-06-20 13:15:44 -04:00
|
|
|
end
|