mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Minor doc fix to String#constantize
This commit is contained in:
parent
5dcb269eb8
commit
06634f44d0
1 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@ class String
|
|||
# Examples
|
||||
# "Module".constantize # => Module
|
||||
# "Class".constantize # => Class
|
||||
# "blargle".safe_constantize # => NameError: wrong constant name blargle
|
||||
# "blargle".constantize # => NameError: wrong constant name blargle
|
||||
def constantize
|
||||
ActiveSupport::Inflector.constantize(self)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue