From 06634f44d0fd106a49d4f7a63bcb1532006e3742 Mon Sep 17 00:00:00 2001 From: Ryan Oblak Date: Fri, 23 Sep 2011 10:21:34 -0700 Subject: [PATCH] Minor doc fix to String#constantize --- .../lib/active_support/core_ext/string/inflections.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index b4218cb42c..c7ceeb9de4 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -36,9 +36,9 @@ class String # 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