Sha256: 8d83352b81a8539e6f6343cb527ebeeb60351d4f21fb6c6b3f7c02c4776ebd24

Contents?: true

Size: 1.74 KB

Versions: 3

Compression:

Stored size: 1.74 KB

Contents

# Be sure to restart your server when you modify this file.

# Add new inflection rules using the following format. Inflections
# are locale specific, and you may define rules for as many different
# locales as you wish. All of these examples are active by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
#   inflect.plural /^(ox)$/i, '\1en'
#   inflect.singular /^(ox)en/i, '\1'
#   inflect.irregular 'person', 'people'
#   inflect.uncountable %w( fish sheep )
# end

# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
#   inflect.acronym 'RESTful'
# end
ActiveSupport::Inflector.inflections do |inflect|
  inflect.plural(/^(.*s)$/i, '\1es')
  inflect.singular(/^(.*s)es$/i, '\1')
  inflect.plural(/^(.*a)$/i, '\1s')
  inflect.plural(/^(.*d)$/i, '\1es')
  inflect.singular(/^(.*d)es$/i, '\1')
  inflect.plural(/^(.*l)$/i, '\1es')
  inflect.singular(/^(.*l)es$/i, '\1')
  inflect.plural(/^(.*n)$/i, '\1es')
  inflect.singular(/^(.*n)es$/i, '\1')
  inflect.irregular 'orgsocial', 'orgsociales'
  inflect.irregular 'clase', 'clases'
  inflect.irregular 'estadosol', 'estadossol'
  inflect.irregular 'etiqueta', 'etiquetas'
  inflect.irregular 'error', 'errores'
  inflect.irregular 'fuenteprensa', 'fuentesprensa'
  inflect.irregular 'grupoper', 'gruposper'
  inflect.irregular 'pais', 'paises'
  inflect.irregular 'perfilorgsocial', 'perfilesorgsocial'
  inflect.irregular 'sectororgsocial', 'sectoresorgsocial'
  inflect.irregular 'tipoorg', 'tiposorg'
  inflect.irregular 'trelacion', 'trelaciones'
  inflect.irregular 'trivalente', 'trivalentes'
  inflect.irregular 'ubicacion', 'ubicaciones'
  inflect.irregular 'ubicacionpre', 'ubicacionespre'
  inflect.irregular 'vereda', 'veredas'
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
msip-2.2.0.alfa3 config/initializers/inflections.rb
msip-2.2.0.alfa2 config/initializers/inflections.rb
msip-2.2a2 config/initializers/inflections.rb