diff options
Diffstat (limited to 'app/helpers/dashboard_helper.rb')
-rw-r--r-- | app/helpers/dashboard_helper.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/dashboard_helper.rb b/app/helpers/dashboard_helper.rb index 218be8a1baa..6115ae4def5 100644 --- a/app/helpers/dashboard_helper.rb +++ b/app/helpers/dashboard_helper.rb @@ -4,7 +4,7 @@ module DashboardHelper when "Issue" then project_issue_path(project, project.issues.find(object.id)) when "Grit::Commit" then project_commit_path(project, project.repo.commits(object.id).first) when "Note" - then + then note = object case note.noteable_type when "Issue" then project_issue_path(project, note.noteable_id) @@ -12,9 +12,9 @@ module DashboardHelper when "Commit" then project_commit_path(project, :id => note.noteable_id) else wall_project_path(project) end - else wall_project_path(project) + else wall_project_path(project) end - rescue + rescue "#" end |