aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activesupport/lib/core_ext/string/inflections.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/lib/core_ext/string/inflections.rb b/activesupport/lib/core_ext/string/inflections.rb
index c63b0592b4..5d1070b00a 100644
--- a/activesupport/lib/core_ext/string/inflections.rb
+++ b/activesupport/lib/core_ext/string/inflections.rb
@@ -31,6 +31,10 @@ module ActiveSupport #:nodoc:
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)