2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
module FreedomPatches
|
|
|
|
module Rails4
|
2023-05-25 08:53:59 -04: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-05 14:16:51 -05:00
|
|
|
|
2023-05-25 08:53:59 -04:00
|
|
|
AgeWords.distance_of_time_in_words(*args)
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
|
2023-05-25 08:53:59 -04: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-05 14:16:51 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|