Latest rubocop
This commit is contained in:
parent
576974bca4
commit
f82369a9f8
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user