lumi-api/config/initializers/inflections.rb

21 lines
777 B
Ruby
Raw Normal View History

2019-04-05 20:52:04 +00:00
# frozen_string_literal: true
2019-04-05 20:20:20 +00:00
# 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 'posicion', 'posiciones'
inflect.singular 'posiciones', 'posicion'
2019-04-21 02:25:39 +00:00
inflect.plural 'pirata', 'piratas'
inflect.singular 'piratas', 'pirata'
2019-08-03 16:23:52 +00:00
inflect.plural 'tripulacion', 'tripulaciones'
inflect.singular 'tripulaciones', 'tripulacion'
end
2019-04-05 20:20:20 +00:00
# These inflection rules are supported but not enabled by default:
# ActiveSupport::Inflector.inflections(:en) do |inflect|
# inflect.acronym 'RESTful'
# end