Permalink
Browse files

Add documentation for Inflector.inflections

  • Loading branch information...
wycats authored and lifo committed May 13, 2008
1 parent 654e775 commit 9546ee299952c86329c4854f9b3776382c0575ff
Showing with 7 additions and 0 deletions.
  1. +7 −0 activesupport/lib/active_support/inflector.rb
@@ -92,6 +92,13 @@ def clear(scope = :all)
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

0 comments on commit 9546ee2

Please sign in to comment.