Skip to content
Extraits de code Groupes Projets
Valider f82369a9 rédigé par echarp's avatar echarp
Parcourir les fichiers

Latest rubocop

parent 576974bc
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -314,7 +314,7 @@ GEM
request_store (1.3.1)
responders (2.3.0)
railties (>= 4.2.0, < 5.1)
rubocop (0.42.0)
rubocop (0.43.0)
parser (>= 2.3.1.1, < 3.0)
powerpack (~> 0.1)
rainbow (>= 1.99.1, < 3.0)
......
......@@ -79,8 +79,9 @@ class ModerationsController < ApplicationController
end
def generate_destroy_reason
@moderation.reason = params[:event][:reason]
if params[:reason] != 'r_4'
if params[:reason] == 'r_4'
@moderation.reason = params[:event][:reason]
else
@moderation.reason = t "moderations.refuse.reason_#{params[:reason]}_long"
end
end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter