我发现了活性置式燃烧器类别。我在哪里可以找到可以初始化英语发电器的代码?

有帮助吗?

解决方案

英语规则在ActiveSupport中(特别是在lib/active_support/furmections.rb中)。

其他提示

活性抑制剂 膨胀子 文件包括所有拐点和模块。

如果要自定义,则有一个名为的文件 inflections.rb 在你的轨道上 config/initializers 小路。

默认情况下它包含

# 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 )
# end

您可以对其进行编辑以自定义 Inflector 行为。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top