Class: Moltin::Support::Inflector
- Inherits:
-
Object
- Object
- Moltin::Support::Inflector
- Defined in:
- lib/moltin/support/inflector.rb
Class Method Summary collapse
Class Method Details
.pluralize(term) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/moltin/support/inflector.rb', line 5 def self.pluralize(term) plurals = { "address" => "addresses", "category" => "categories", "currency" => "currencies", "tax" => "taxes", } plurals[term] || "#{term}s" end |