Permalink
Browse files

Merge pull request #3114 from zenprogrammer/fix_constantize_doc

Minor doc fix to String#constantize
  • Loading branch information...
2 parents 5dcb269 + 06634f4 commit 8bde477e9d9753702cdc6053331e121f4885fd64 @josevalim josevalim committed Sep 23, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 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

0 comments on commit 8bde477

Please sign in to comment.