discourse/lib/freedom_patches/rails4.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
728 B
Ruby
Raw Normal View History

# frozen_string_literal: true
2013-02-05 14:16:51 -05:00
module FreedomPatches
module Rails4
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
AgeWords.distance_of_time_in_words(*args)
2013-02-05 14:16:51 -05:00
end
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