inflections.rb 910 B

123456789101112131415161718192021222324
  1. # Be sure to restart your server when you modify this file.
  2. # Add new inflection rules using the following format. Inflections
  3. # are locale specific, and you may define rules for as many different
  4. # locales as you wish. All of these examples are active by default:
  5. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  6. # inflect.plural /^(ox)$/i, '\1en'
  7. # inflect.singular /^(ox)en/i, '\1'
  8. # inflect.irregular 'person', 'people'
  9. # inflect.uncountable %w( fish sheep )
  10. # end
  11. # These inflection rules are supported but not enabled by default:
  12. # ActiveSupport::Inflector.inflections(:en) do |inflect|
  13. # inflect.acronym 'RESTful'
  14. # end
  15. ActiveSupport::Inflector.inflections(:en) do |inflect|
  16. # Rails thinks the singularized version of knowledge_bases is knowledge_basis?!
  17. # see: KnowledgeBase.table_name.singularize
  18. inflect.singular(/(knowledge_base)s$/i, '\1')
  19. inflect.acronym 'SMIME'
  20. end