Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix doc example for dasherize #6748

Merged
merged 1 commit into from

2 participants

@marcandre

Trivial doc fix.
Thanks

@rafaelfranca rafaelfranca merged commit d28ba0d into rails:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 15, 2012
  1. @marcandre
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.