Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
34b9f0bc61
commit
0a52c09684
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue