diff --git a/activesupport/lib/core_ext/string/inflections.rb b/activesupport/lib/core_ext/string/inflections.rb index c63b0592b4dc8a3438bf79ee1b530bac88433979..5d1070b00a94b1de245276b5ad89c34b2d708f94 100644 --- a/activesupport/lib/core_ext/string/inflections.rb +++ b/activesupport/lib/core_ext/string/inflections.rb @@ -31,6 +31,10 @@ def tableize def classify Inflector.classify(self) end + + def humanize + Inflector.humanize(self) + end def foreign_key(separate_class_name_and_id_with_underscore = true) Inflector.foreign_key(self, separate_class_name_and_id_with_underscore)