aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorcedricnjanga2017-12-13 18:32:23 +0100
committercedricnjanga2017-12-13 18:32:48 +0100
commitf09adf01633cfe55197b5ff4b0151532fe30934d (patch)
tree90683926891d0d9b208717d1b1fbf692703db6e0 /app/helpers
parentf9d51d00b98c47beb9cc1d6effe3339c4b4a3f9e (diff)
downloadchouette-core-f09adf01633cfe55197b5ff4b0151532fe30934d.tar.bz2
Fix compliance control block#edit view pageheader
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/application_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 6b35863f6..124604cd9 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -16,7 +16,7 @@ module ApplicationHelper
object = object.object if object.try(:object)
local = "#{object.model_name.name.underscore.pluralize}.#{params[:action]}.title"
if object.try(:name)
- t(local, name: object.name)
+ t(local, name: object.name || object.id)
else
t(local)
end