DEV: Move distance_of_time_in_words/time_ago_in_words (#21745)

It wasn't a patch (just two helper functions that were called directly) and no longer has much to do with "Rails 4"
This commit is contained in:
Jarek Radosz
2023-05-25 14:53:59 +02:00
committed by GitHub
parent bd742de0b7
commit 036e27e69a
6 changed files with 108 additions and 92 deletions

View File

@ -302,7 +302,7 @@ RSpec.describe Admin::UsersController do
"user.already_suspended",
staff: admin.username,
time_ago:
FreedomPatches::Rails4.time_ago_in_words(
AgeWords.time_ago_in_words(
user.suspend_record.created_at,
true,
scope: :"datetime.distance_in_words_verbose",
@ -1539,7 +1539,7 @@ RSpec.describe Admin::UsersController do
"user.already_silenced",
staff: admin.username,
time_ago:
FreedomPatches::Rails4.time_ago_in_words(
AgeWords.time_ago_in_words(
user.silenced_record.created_at,
true,
scope: :"datetime.distance_in_words_verbose",