Fixes for Ruby 2.4 support

This commit is contained in:
Kyle Drake 2017-03-22 11:39:06 -07:00
parent d03df1c490
commit 9f73ec61bd
7 changed files with 232 additions and 88 deletions

View file

@ -1,7 +1,9 @@
class Time
alias_method :ago_original, :ago
def ago
ago_original.downcase.gsub('right now, this very moment.', 'just now')
self.ago_in_words
end
end
def from_now
self.from_now_in_words
end
end