From d2d146b26d140ca3a5ae63cfda8292e73cd070a8 Mon Sep 17 00:00:00 2001 From: Santiago Pastorino Date: Sun, 11 Apr 2010 21:19:07 -0300 Subject: [PATCH] added tax word to irregular inflections [#2046 state:committed] --- activesupport/lib/active_support/inflections.rb | 1 + activesupport/test/inflector_test_cases.rb | 1 + 2 files changed, 2 insertions(+), 0 deletions(-) diff --git a/activesupport/lib/active_support/inflections.rb b/activesupport/lib/active_support/inflections.rb index e7b5387..7aea1a0 100644 --- a/activesupport/lib/active_support/inflections.rb +++ b/activesupport/lib/active_support/inflections.rb @@ -50,6 +50,7 @@ module ActiveSupport inflect.irregular('sex', 'sexes') inflect.irregular('move', 'moves') inflect.irregular('cow', 'kine') + inflect.irregular('tax', 'taxes') inflect.uncountable(%w(equipment information rice money species series fish sheep jeans)) end diff --git a/activesupport/test/inflector_test_cases.rb b/activesupport/test/inflector_test_cases.rb index 29f87ac..8130f94 100644 --- a/activesupport/test/inflector_test_cases.rb +++ b/activesupport/test/inflector_test_cases.rb @@ -102,6 +102,7 @@ module InflectorTestCases "edge" => "edges", "cow" => "kine", + "tax" => "taxes", "database" => "databases" } -- 1.7.0