Skip to content
Browse files

Merge pull request #6748 from marcandre/dasherize_doc

Fix doc example for dasherize
  • Loading branch information...
2 parents 8b35a23 + fce1735 commit d28ba0def829f6fb9ecf824c036391058cbb9e66 @rafaelfranca rafaelfranca committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/core_ext/string/inflections.rb
View
2 activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -107,7 +107,7 @@ def underscore
# Replaces underscores with dashes in the string.
#
- # 'puni_puni' # => "puni-puni"
+ # 'puni_puni'.dasherize # => "puni-puni"
def dasherize
ActiveSupport::Inflector.dasherize(self)
end

0 comments on commit d28ba0d

Please sign in to comment.
Something went wrong with that request. Please try again.