Ruby on rails RubyonRails4命令行本地化问题

Ruby on rails RubyonRails4命令行本地化问题,ruby-on-rails,Ruby On Rails,我正在开发一个使用自定义屈折变化的rails 4.1.1应用程序: 拐点.rb: ActiveSupport::Inflector.inflections(:es) do |inflect| inflect.plural /([taeiou])([A-Z]|_|\$)/, '\1s\2' inflect.plural /([rlnd])([A-Z]|_|$)/, '\1es\2' inflect.singular /([taeiou])s([A-Z]|_|$)/, '\1\2'

我正在开发一个使用自定义屈折变化的rails 4.1.1应用程序:

拐点.rb:

ActiveSupport::Inflector.inflections(:es) do |inflect|
  inflect.plural /([taeiou])([A-Z]|_|\$)/, '\1s\2'
  inflect.plural /([rlnd])([A-Z]|_|$)/, '\1es\2'
  inflect.singular /([taeiou])s([A-Z]|_|$)/, '\1\2'
  inflect.singular /([rlnd])es([A-Z]|_|$)/, '\1\2'
end
在application.rb中:

...
config.i18n.default_locale = :es
config.i18n.locale = :es
...
但当我尝试生成一个不使用屈折因子的模型时,我尝试打开一个rails控制台并使用以下命令进行测试:

"direccion".pluralize 
答案是direcions,这是不正确的,正确的答案是direcions。我应该更改什么,以便它在命令行或rails控制台中使用我的自定义屈折符,从而正确生成我的模型