lib/glue/inflector.rb in og-0.9.5 vs lib/glue/inflector.rb in og-0.10.0
- old
+ new
@@ -1,14 +1,14 @@
-# Code from RubyOnRailes (http://www.rubyonrails.com)
+# Code from RubyOnRails (http://www.rubyonrails.com)
# Copyright (c) 2004 David Heinemeier Hansson.
-#
module N
-# The Inflector transforms words from singular to plural, class names to table names, modulized class names to ones without,
+# The Inflector transforms words from singular to plural,
+# class names to table names, modulized class names to ones without,
# and class names to foreign keys.
-#
+
module Inflector
extend self
def pluralize(word)
result = word.dup
@@ -86,6 +86,6 @@
[/s$/, '']
]
end
end
-end # module
+end