2019-05-03 06:17:27 +08:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-06 03:16:51 +08:00
|
|
|
module FreedomPatches
|
|
|
|
module Rails4
|
2023-05-25 20:53:59 +08:00
|
|
|
def self.distance_of_time_in_words(*args)
|
|
|
|
Discourse.deprecate(
|
|
|
|
"FreedomPatches::Rails4.distance_of_time_in_words has moved to AgeWords.distance_of_time_in_words",
|
|
|
|
output_in_test: true,
|
|
|
|
since: "3.1.0.beta5",
|
|
|
|
drop_from: "3.2.0.beta1",
|
|
|
|
)
|
2013-02-06 03:16:51 +08:00
|
|
|
|
2023-05-25 20:53:59 +08:00
|
|
|
AgeWords.distance_of_time_in_words(*args)
|
2013-02-06 03:16:51 +08:00
|
|
|
end
|
|
|
|
|
2023-05-25 20:53:59 +08:00
|
|
|
def self.time_ago_in_words(*args)
|
|
|
|
Discourse.deprecate(
|
|
|
|
"FreedomPatches::Rails4.time_ago_in_words has moved to AgeWords.time_ago_in_words",
|
|
|
|
output_in_test: true,
|
|
|
|
since: "3.1.0.beta5",
|
|
|
|
drop_from: "3.2.0.beta1",
|
|
|
|
)
|
|
|
|
|
|
|
|
AgeWords.time_ago_in_words(*args)
|
2013-02-06 03:16:51 +08:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|