From 0a52c09684f77926a96eaf95098c57d113ac846b Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 16 Jan 2022 14:13:01 +0100 Subject: [PATCH] Apply review suggestion from @nilsding Co-authored-by: Georg Gadinger --- app/helpers/application_helper/title_methods.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/helpers/application_helper/title_methods.rb b/app/helpers/application_helper/title_methods.rb index fdecfc14..abbdd040 100644 --- a/app/helpers/application_helper/title_methods.rb +++ b/app/helpers/application_helper/title_methods.rb @@ -4,8 +4,8 @@ module ApplicationHelper::TitleMethods include MarkdownHelper include UserHelper - def generate_title(name, junction = nil, content = nil, possesive = false) - if possesive + def generate_title(name, junction = nil, content = nil, possessive = false) + if possessive name = if name[-1].downcase == "s" "#{name}'" else