Skip to content

Instantly share code, notes, and snippets.

@eveevans
Created January 29, 2014 15:30
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 eveevans/8690350 to your computer and use it in GitHub Desktop.
Save eveevans/8690350 to your computer and use it in GitHub Desktop.
Rails configuration for spanish Inflection
# Be sure to restart your server when you modify this file.
# Add new inflection rules using the following format
# (all these examples are active by default):
ActiveSupport::Inflector.inflections do |inflect|
inflect.plural /([taeiou])$/, '\1s'
inflect.plural /([rlmnd])$/, '\1es'
inflect.singular /([taeiou])s$/, '\1'
inflect.singular /([aeiou][rlmnd])es$/, '\1'
inflect.uncountable 'pass'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment