Sha256: db56ae4e2288acbea66776a488582c61b164d20b2108b13f54a040fd38f8c947
Contents?: true
Size: 470 Bytes
Versions: 1
Compression:
Stored size: 470 Bytes
Contents
# the default_count is called from i18n tags in order to produce the right pluralization # when no count is explicitly passed. It is normally used to generate a plural. # You can return different integers according to the needs of different languages # if you return the symbol :dynamic the count will be the model count # so the tag output will be singular or plural depending on the record count def default_count 100 # fixed plural by default end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hobo-1.3.0.pre10 | lib/generators/hobo/i18n/templates/default_count_injection.rb |