Apply review suggestion from @nilsding

Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
Andreas Nedbal 2022-01-16 14:13:01 +01:00 committed by Andreas Nedbal
parent 34b9f0bc61
commit 0a52c09684
1 changed files with 2 additions and 2 deletions

View File

@ -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