user dashboard
This commit is contained in:
parent
267bd6068c
commit
485c5199b7
7 changed files with 73 additions and 4 deletions
|
@ -1,2 +1,9 @@
|
|||
module DashboardHelper
|
||||
def path_to_object(project, object)
|
||||
case object.class.name.to_s
|
||||
when "Issue" then project_issues_path(project, project.issues.find(object.id))
|
||||
when "Grit::Commit" then project_commit_path(project, project.repo.commits(object.id).first)
|
||||
else "#"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue