Skip to content

Instantly share code, notes, and snippets.

@mrpunkin
Created May 5, 2015 22:09
Show Gist options
  • Save mrpunkin/8e7614fccba73078c5bb to your computer and use it in GitHub Desktop.
Save mrpunkin/8e7614fccba73078c5bb to your computer and use it in GitHub Desktop.
Acronym humanize inflection
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