mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
Fixes for Ruby 2.4 support
This commit is contained in:
parent
d03df1c490
commit
9f73ec61bd
7 changed files with 232 additions and 88 deletions
10
ext/time.rb
10
ext/time.rb
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue