diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-14 10:56:06 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-14 10:56:06 +0300 |
commit | 7b1affd426fbf24445df25e439cbda9b6bd4b046 (patch) | |
tree | fdd6abd4bf72ae9729fa11117cb53b46421ece96 /app/helpers | |
parent | 1663587ccd9cd12b11efff51a6744bc33a664055 (diff) |
use `.last` instead
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/page_layout_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/page_layout_helper.rb b/app/helpers/page_layout_helper.rb index 73b2ec66ee0..b30b2eb1d03 100644 --- a/app/helpers/page_layout_helper.rb +++ b/app/helpers/page_layout_helper.rb @@ -5,7 +5,7 @@ module PageLayoutHelper @page_title.push(*titles.compact) if titles.any? if show_new_nav? && titles.any? && !defined?(@breadcrumb_title) - @breadcrumb_title = @page_title[-1] + @breadcrumb_title = @page_title.last end # Segments are seperated by middot |