瀏覽代碼

Add plural inflector for pokemon

Andrew Swistak 7 年之前
父節點
當前提交
cf3ba9eb75
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      config/initializers/inflections.rb

+ 3 - 0
config/initializers/inflections.rb

@@ -14,3 +14,6 @@
 # ActiveSupport::Inflector.inflections(:en) do |inflect|
 #   inflect.acronym 'RESTful'
 # end
+ActiveSupport::Inflector.inflections(:en) do |inflect|
+  inflect.uncountable 'pokemon', 'pokemon'
+end