readingtime icon indicating copy to clipboard operation
readingtime copied to clipboard

Pluralize based on time

Open jenkoian opened this issue 12 years ago • 1 comments

Wanted to implement this in https://github.com/garethrees/readingtime/pull/2 but I had some problems (due to my awful ruby) so left it out. Would be useful to run the results through a pluralize method though to minute(s) and second(s) is displayed accurately.

Am using this for my blog, and the it's extremely unlikely that a post will be less than 1 minute so not urgent, but would be nice to have :)

jenkoian avatar Jan 20 '13 20:01 jenkoian

This comes for free in ActiveSupport. Might be a way to include some of its functionality without having a massive dependency.

garethrees avatar Jan 20 '13 22:01 garethrees