Drop word_pluralize helper
It makes no sense...
This commit is contained in:
parent
368e2ddd88
commit
1178cc7273
2 changed files with 3 additions and 13 deletions
|
|
@ -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 '#'.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue