Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Waite committed Oct 1, 2009
1 parent a8010d2 commit 0b475cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dehumanize.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Dehumanize
module ActiveSupport::Inflector
def dehumanize(the_string)
the_string.gsub(' ', '_').downcase
end
end

class String
def dehumanize
ActiveSupport::Inflector.dehumanize(self)
Expand Down

0 comments on commit 0b475cd

Please sign in to comment.