From d88b29f017e3c1270e4dec91b39f2fb72e98076c Mon Sep 17 00:00:00 2001 From: Oleg Valter Date: Sun, 22 Oct 2023 05:41:05 +0300 Subject: [PATCH] do not truncate post title in the element --- app/views/posts/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/posts/show.html.erb b/app/views/posts/show.html.erb index c534a060e..d5a6e7f89 100644 --- a/app/views/posts/show.html.erb +++ b/app/views/posts/show.html.erb @@ -1,4 +1,4 @@ -<% content_for :title, @post.title.truncate(50) %> +<% content_for :title, @post.title.truncate(max_title_length(@post.category)) %> <% content_for :description do %> <% Rails.cache.fetch "posts/#{@post.id}/description" do %> <%= @post.body_plain[0..74].strip %>...