mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
Fixed wrong call of translation method in ban action
This commit is contained in:
parent
918c514f12
commit
6a083230dd
1 changed files with 1 additions and 1 deletions
|
@ -59,7 +59,7 @@ class Ajax::ModerationController < AjaxController
|
|||
raise Errors::InvalidBanDuration unless %w[hours days weeks months].include? duration_unit
|
||||
|
||||
expiry = DateTime.now + duration.public_send(duration_unit)
|
||||
@response[:message] = I18n.t(".success.temporary", date: expiry.to_s)
|
||||
@response[:message] = t(".success.temporary", date: expiry.to_s)
|
||||
end
|
||||
|
||||
UseCase::User::Ban.call(
|
||||
|
|
Loading…
Reference in a new issue