Module: ActiveSupport::Inflector

Defined in:
lib/dehumanize.rb

Instance Method Summary collapse

Instance Method Details

#dehumanize(s) ⇒ Object



9
10
11
# File 'lib/dehumanize.rb', line 9

def dehumanize s
  s.titleize.gsub(" ", "").underscore
end