From 9546ee299952c86329c4854f9b3776382c0575ff Mon Sep 17 00:00:00 2001 From: Yehuda Katz Date: Mon, 12 May 2008 23:41:43 -0700 Subject: Add documentation for Inflector.inflections --- activesupport/lib/active_support/inflector.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/inflector.rb b/activesupport/lib/active_support/inflector.rb index 68fbf3da35..0fd44324bb 100644 --- a/activesupport/lib/active_support/inflector.rb +++ b/activesupport/lib/active_support/inflector.rb @@ -92,6 +92,13 @@ module Inflector extend self + # Yields a singleton instance of Inflector::Inflections so you can specify additional + # inflector rules. + # + # Example: + # Inflector.inflections do |inflect| + # inflect.uncountable "rails" + # end def inflections if block_given? yield Inflections.instance -- cgit v1.2.3