Drop word_pluralize helper

It makes no sense...
This commit is contained in:
Henne Vogelsang 2025-01-30 16:21:30 +01:00
parent 368e2ddd88
commit 1178cc7273
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
2 changed files with 3 additions and 13 deletions

View file

@ -114,16 +114,6 @@ module FormatHelper
end
end
def word_pluralize(count, singular, plural = nil)
word = if (count == 1 || count =~ /^1(\.0+)?$/)
singular
else
plural || singular.pluralize
end
word
end
# Returns black or white deppending on what of them contrast more with the
# given color. Useful to print text in a coloured background.
# hexcolor is a hex color of 7 characters, being the first one '#'.