diff options
| author | cedricnjanga | 2017-12-13 18:32:23 +0100 |
|---|---|---|
| committer | cedricnjanga | 2017-12-13 18:32:48 +0100 |
| commit | f09adf01633cfe55197b5ff4b0151532fe30934d (patch) | |
| tree | 90683926891d0d9b208717d1b1fbf692703db6e0 /app/helpers/application_helper.rb | |
| parent | f9d51d00b98c47beb9cc1d6effe3339c4b4a3f9e (diff) | |
| download | chouette-core-f09adf01633cfe55197b5ff4b0151532fe30934d.tar.bz2 | |
Fix compliance control block#edit view pageheader
Diffstat (limited to 'app/helpers/application_helper.rb')
| -rw-r--r-- | app/helpers/application_helper.rb | 2 |
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 |
