Created
May 5, 2015 22:09
-
-
Save mrpunkin/8e7614fccba73078c5bb to your computer and use it in GitHub Desktop.
Acronym humanize inflection
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
ActiveSupport::Inflector.inflections(:en) do |inflect| | |
inflect.acronym "URL" | |
inflect.human /url/i, "url" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment