Skip to content

Instantly share code, notes, and snippets.

@jlecour
Created February 10, 2012 17:11
Show Gist options
  • Save jlecour/1791011 to your computer and use it in GitHub Desktop.
Save jlecour/1791011 to your computer and use it in GitHub Desktop.
# 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 /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'
# inflect.uncountable %w( fish sheep )
inflect.uncountable %w(
accor
booking
ebookers
expedia
fastbooking
hotelinfo
hotelscom
hrs
ian
lastminute
laterooms
laterooms
orbitz
pws
ratestogo
splendia
venere
vsc
)
inflect.irregular 'index', 'indexes'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment