Permalink
Browse files

Minor doc fix to String#constantize

  • Loading branch information...
rroblak committed Sep 23, 2011
1 parent 5dcb269 commit 06634f44d0fd106a49d4f7a63bcb1532006e3742
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 06634f4

Please sign in to comment.