Explorar o código

Add plural inflector for pokemon

Andrew Swistak %!s(int64=7) %!d(string=hai) anos
pai
achega
cf3ba9eb75
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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