Commit fc9e5743 authored by Jarka Kadlecova's avatar Jarka Kadlecova

Fix failing static-analysis (rubocop)

parent d542c2f1
......@@ -213,7 +213,7 @@ module IssuablesHelper
initialTitleText: issuable.title,
initialDescriptionHtml: markdown_field(issuable, :description),
initialDescriptionText: issuable.description,
initialTaskStatus: issuable.task_status,
initialTaskStatus: issuable.task_status
}
data.merge!(updated_at_by(issuable))
......
......@@ -23,7 +23,7 @@ class IssueEntity < IssuableEntity
end
expose :create_note_path do |issue|
namespace_project_notes_path(issue.project.namespace, issue.project, target_type: 'issue', target_id: issue.id)
project_notes_path(issue.project, target_type: 'issue', target_id: issue.id)
end
expose :preview_note_path do |issue|
......
......@@ -37,7 +37,7 @@ class NoteEntity < API::Entities::Note
if note.for_personal_snippet?
toggle_award_emoji_snippet_note_path(note.noteable, note)
else
toggle_award_emoji_namespace_project_note_path(note.project.namespace, note.project, note.id)
toggle_award_emoji_project_note_path(note.project, note.id)
end
end
......@@ -49,12 +49,12 @@ class NoteEntity < API::Entities::Note
if note.for_personal_snippet?
snippet_note_path(note.noteable, note)
else
namespace_project_note_path(note.project.namespace, note.project, note)
project_note_path(note.project, note)
end
end
expose :attachment, using: NoteAttachmentEntity
expose :delete_attachment_path, if: -> (note, _) { note.attachment? } do |note|
delete_attachment_namespace_project_note_path(note.project.namespace, note.project, note)
delete_attachment_project_note_path(note.project, note)
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment