Parcourir la source

Add plural inflector for pokemon

Andrew Swistak il y a 7 ans
Parent
commit
cf3ba9eb75
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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