You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltacloud.apache.org by ma...@redhat.com on 2011/12/08 15:24:52 UTC
[PATCH 4/4] Adds exception to String::pluralize for 'data' ("metadata".pluralize != "metadatas")
From: marios <ma...@redhat.com>
Signed-off-by: marios <ma...@redhat.com>
---
server/lib/deltacloud/core_ext/string.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/server/lib/deltacloud/core_ext/string.rb b/server/lib/deltacloud/core_ext/string.rb
index de56c99..b3e2dbe 100644
--- a/server/lib/deltacloud/core_ext/string.rb
+++ b/server/lib/deltacloud/core_ext/string.rb
@@ -35,6 +35,7 @@ class String
def pluralize
return self + 'es' if self =~ /ess$/
return self[0, self.length-1] + "ies" if self =~ /ty$/
+ return self if self =~ /data$/
self + "s"
end
--
1.7.6.4