Update notes views to support discussions
This commit is contained in:
parent
0b3df2f128
commit
5c2f6d7f05
14 changed files with 270 additions and 60 deletions
|
@ -79,7 +79,7 @@ class Note < ActiveRecord::Base
|
|||
end
|
||||
|
||||
def discussion_id
|
||||
@discussion_id ||= [noteable_type, noteable_id, line_code].join.underscore.to_sym
|
||||
@discussion_id ||= [:discussion, noteable_type.underscore, noteable_id, line_code].join("-").to_sym
|
||||
end
|
||||
|
||||
# Returns true if this is a downvote note,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue