diff options
author | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 12:34:30 +0400 |
---|---|---|
committer | Nihad Abbasov <narkoz.2008@gmail.com> | 2011-11-15 12:34:30 +0400 |
commit | 368deb5992f27fce9a23629229af4367ba38f901 (patch) | |
tree | c76ca9922a8b789924032cfef63e7e52544add5d /app/helpers | |
parent | 415eddaf39d7e1ffc4bf009d43a273614224909b (diff) |
clean up whitespace from project
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/application_helper.rb | 4 | ||||
-rw-r--r-- | app/helpers/dashboard_helper.rb | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 17c831daf80..4768ea81099 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -11,7 +11,7 @@ module ApplicationHelper end def body_class(default_class = nil) - main = content_for(:body_class).blank? ? + main = content_for(:body_class).blank? ? default_class : content_for(:body_class) @@ -42,7 +42,7 @@ module ApplicationHelper else "Never" end - rescue + rescue "Never" end 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 |