Sha256: e02a34b2beb4b533a2f17307a80cb071902c910e05d12720fd53412357fc4ff3
Contents?: true
Size: 312 Bytes
Versions: 22
Compression:
Stored size: 312 Bytes
Contents
module Paperclip module Interpolations class PluralCache def initialize @cache = {} end def pluralize(word) @cache[word] ||= word.pluralize end def underscore_and_pluralize(word) @cache[word] ||= word.underscore.pluralize end end end end
Version data entries
22 entries across 20 versions & 2 rubygems
Version | Path |
---|---|
paperclip-3.4.2 | lib/paperclip/interpolations/plural_cache.rb |
paperclip-3.4.1 | lib/paperclip/interpolations/plural_cache.rb |