Closed harssh closed 10 years ago
Thanks for submitting this! It would unfortunately break in Rails 3 apps, though, in which the third argument of distance_of_time_in_words
is a boolean. If you'd like to fix this, perhaps you could open a new PR that contains something like:
if Rails::VERSION::MAJOR >= 4
words = distance_of_time_in_words(from_time, to_time, include_seconds: true)
else
words = distance_of_time_in_words(from_time, to_time, true)
end
words.gsub('less than ', '').gsub('about ', '')
I'd rather we didn't add this onto this PR, so that we can keep the revision history clean. If you don't have time to do this soon, I can probably do it within the next couple of days. Thanks!
Tom, please pull https://github.com/socialpandas/sidekiq_monitor/pull/28
@tombenner No problem I will add that to PR
@tombenner Thanx for the suggestion I have added suggested changes ... Apprecite it :+1:
You can merge this PR now
Thanks! #28 was cleaner (it removed the original faulty line), so I've merged that. The new release (0.1.5) contains this fix.
Hopefully someone hears you.