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