Latest rubocop

This commit is contained in:
echarp 2016-09-19 16:35:19 +02:00
parent 576974bca4
commit f82369a9f8
2 changed files with 4 additions and 3 deletions

View File

@ -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)

View File

@ -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