Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3114 from zenprogrammer/fix_constantize_doc

Minor doc fix to String#constantize
  • Loading branch information...
commit 8bde477e9d9753702cdc6053331e121f4885fd64 2 parents 5dcb269 + 06634f4
@josevalim josevalim authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 activesupport/lib/active_support/core_ext/string/inflections.rb
View
6 activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -36,9 +36,9 @@ def singularize
# or is not initialized. See ActiveSupport::Inflector.constantize
#
# Examples
- # "Module".constantize # => Module
- # "Class".constantize # => Class
- # "blargle".safe_constantize # => NameError: wrong constant name blargle
+ # "Module".constantize # => Module
+ # "Class".constantize # => Class
+ # "blargle".constantize # => NameError: wrong constant name blargle
def constantize
ActiveSupport::Inflector.constantize(self)
end
Please sign in to comment.
Something went wrong with that request. Please try again.