Guest User

Untitled

a guest
Jan 23rd, 2018
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def plural_word(count, singular, plural = nil)
  2. ((count == 1 || count =~ /^1(\.0+)?$/) ? singular : (plural || singular.pluralize))
  3. end
Add Comment
Please, Sign In to add comment