8db2a59d0b
Instead of doing this: link_to(commit.id, project_commit_path(project, id: commit.id)) Note.create(noteable_id: commit.id, noteable_type: "Commit", ...) It lets us do this: link_to(commit.id, project_commit_path(project, commit)) Note.create(noteable: commit, ...) |
||
---|---|---|
.. | ||
.gitkeep | ||
ability.rb | ||
commit.rb | ||
event.rb | ||
issue.rb | ||
key.rb | ||
merge_request.rb | ||
milestone.rb | ||
note.rb | ||
project.rb | ||
project_hook.rb | ||
protected_branch.rb | ||
snippet.rb | ||
system_hook.rb | ||
tree.rb | ||
user.rb | ||
users_project.rb | ||
web_hook.rb | ||
wiki.rb |