mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -115,7 +115,7 @@ class Admin::UsersController < Admin::StaffController
|
||||
"user.already_suspended",
|
||||
staff: suspend_record.acting_user.username,
|
||||
time_ago:
|
||||
FreedomPatches::Rails4.time_ago_in_words(
|
||||
AgeWords.time_ago_in_words(
|
||||
suspend_record.created_at,
|
||||
true,
|
||||
scope: :"datetime.distance_in_words_verbose",
|
||||
@@ -368,7 +368,7 @@ class Admin::UsersController < Admin::StaffController
|
||||
"user.already_silenced",
|
||||
staff: silenced_record.acting_user.username,
|
||||
time_ago:
|
||||
FreedomPatches::Rails4.time_ago_in_words(
|
||||
AgeWords.time_ago_in_words(
|
||||
silenced_record.created_at,
|
||||
true,
|
||||
scope: :"datetime.distance_in_words_verbose",
|
||||
|
||||
@@ -36,7 +36,7 @@ class ComposerMessagesController < ApplicationController
|
||||
user_count: user_count,
|
||||
usernames: users,
|
||||
time_ago:
|
||||
FreedomPatches::Rails4.time_ago_in_words(
|
||||
AgeWords.time_ago_in_words(
|
||||
SiteSetting.pm_warn_user_last_seen_months_ago.month.ago,
|
||||
true,
|
||||
scope: :"datetime.distance_in_words_verbose",
|
||||
|
||||
Reference in New Issue
Block a user