This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/config/initializers/dehumanize.rb

11 lines
196 B
Ruby
Raw Normal View History

module ActiveSupport::Inflector
def dehumanize(the_string)
the_string.gsub(' ', '_').downcase
end
end
class String
def dehumanize
ActiveSupport::Inflector.dehumanize(self)
end
end