2016-08-24 12:49:21 +05:30
|
|
|
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-09-13 17:45:13 +05:30
|
|
|
def original_line_code
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
2016-08-24 12:49:21 +05:30
|
|
|
def diff_attributes
|
|
|
|
raise NotImplementedError
|
|
|
|
end
|
|
|
|
|
|
|
|
def can_be_award_emoji?
|
|
|
|
false
|
|
|
|
end
|
2016-09-29 09:46:39 +05:30
|
|
|
|
|
|
|
def to_discussion
|
|
|
|
Discussion.new([self])
|
|
|
|
end
|
2016-08-24 12:49:21 +05:30
|
|
|
end
|