Skip to content

Instantly share code, notes, and snippets.

@carlwoodward
Forked from lachlanhardy/new_plural.rb
Created September 26, 2010 09:21
Show Gist options
  • Save carlwoodward/597761 to your computer and use it in GitHub Desktop.
Save carlwoodward/597761 to your computer and use it in GitHub Desktop.
def new_plural (number, text)
number == 1 ? text : text.pluralize
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment