i18n_rails_helpers 1.4.6 → 1.4.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -15,7 +15,8 @@ module BootstrapHelper
|
|
15
15
|
else
|
16
16
|
action = action_or_title || action_name
|
17
17
|
if action.to_s == 'show' && defined?(resource) && resource.present?
|
18
|
-
title = resource.
|
18
|
+
title = resource.display_name if resource.respond_to?(:display_name)
|
19
|
+
title ||= resource.to_s
|
19
20
|
else
|
20
21
|
title = t_title(action, model)
|
21
22
|
end
|