mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-02-13 21:33:20 +01:00
Apply review suggestion from @nilsding
Co-authored-by: Georg Gadinger <nilsding@nilsding.org>
This commit is contained in:
parent
34b9f0bc61
commit
0a52c09684
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue