Apply review suggestion from @raccube
Co-authored-by: Karina Kwiatek <6197148+raccube@users.noreply.github.com>
This commit is contained in:
parent
7a568889b8
commit
9fc3e535d2
|
@ -39,7 +39,7 @@ class Ajax::ReportController < AjaxController
|
||||||
current_user.report object, params[:reason]
|
current_user.report object, params[:reason]
|
||||||
|
|
||||||
@response[:status] = :okay
|
@response[:status] = :okay
|
||||||
@response[:message] = t(".success", parameter: params[:type])
|
@response[:message] = t(".success", parameter: params[:type].titleize)
|
||||||
@response[:success] = true
|
@response[:success] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue