Created
October 5, 2017 17:33
-
-
Save faloi/5badbe21f4e51c59d0b479af1861a1bf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pegar en config/initializers/inflections.rb y resetear el servidor | |
ActiveSupport::Inflector.inflections do |inflect| | |
inflect.clear :all | |
inflect.plural /([^djlnrs])([A-Z]|_|$)/, '\1s\2' | |
inflect.plural /([djlnrs])([A-Z]|_|$)/, '\1es\2' | |
inflect.plural /(.*)z([A-Z]|_|$)$/i, '\1ces\2' | |
inflect.singular /([^djlnrs])s([A-Z]|_|$)/, '\1\2' | |
inflect.singular /([djlnrs])es([A-Z]|_|$)/, '\1\2' | |
inflect.singular /(.*)ces([A-Z]|_|$)$/i, '\1z\2' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment