Skip to content

Instantly share code, notes, and snippets.

@jlapier
Created January 29, 2013 19:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlapier/4666809 to your computer and use it in GitHub Desktop.
Save jlapier/4666809 to your computer and use it in GitHub Desktop.
there are no words in English that end in 's' as singular but 'ss' as plural
# config/initializers/inflections.rb
ActiveSupport::Inflector.inflections do |inflect|
inflect.singular(/^(.*ss)$/i, '\1')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment