orbit-4-2/config/initializers/dehumanize.rb

11 lines
196 B
Ruby
Raw Permalink 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