Mercurial > zeropaste
comparison config/initializers/inflections.rb @ 431:68eb23b52864
Rails 5 \o/
author | nanaya <me@myconan.net> |
---|---|
date | Fri, 13 May 2016 03:56:07 +0900 |
parents | 4aa8194a1733 |
children | 6cac8fcf8164 |
comparison
equal
deleted
inserted
replaced
430:6257da6e1aa1 | 431:68eb23b52864 |
---|---|
1 # Be sure to restart your server when you modify this file. | 1 # Be sure to restart your server when you modify this file. |
2 | 2 |
3 # Add new inflection rules using the following format | 3 # Add new inflection rules using the following format. Inflections |
4 # (all these examples are active by default): | 4 # are locale specific, and you may define rules for as many different |
5 # ActiveSupport::Inflector.inflections do |inflect| | 5 # locales as you wish. All of these examples are active by default: |
6 # ActiveSupport::Inflector.inflections(:en) do |inflect| | |
6 # inflect.plural /^(ox)$/i, '\1en' | 7 # inflect.plural /^(ox)$/i, '\1en' |
7 # inflect.singular /^(ox)en/i, '\1' | 8 # inflect.singular /^(ox)en/i, '\1' |
8 # inflect.irregular 'person', 'people' | 9 # inflect.irregular 'person', 'people' |
9 # inflect.uncountable %w( fish sheep ) | 10 # inflect.uncountable %w( fish sheep ) |
10 # end | 11 # end |
11 # | 12 |
12 # These inflection rules are supported but not enabled by default: | 13 # These inflection rules are supported but not enabled by default: |
13 # ActiveSupport::Inflector.inflections do |inflect| | 14 # ActiveSupport::Inflector.inflections(:en) do |inflect| |
14 # inflect.acronym 'RESTful' | 15 # inflect.acronym 'RESTful' |
15 # end | 16 # end |