mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 02:00:00 +01:00
Remove unnecessary success condition in Ajax::ReportController
This commit is contained in:
parent
e3323dd1e3
commit
242e6ede84
1 changed files with 3 additions and 7 deletions
|
@ -20,12 +20,8 @@ class Ajax::ReportController < AjaxController
|
||||||
reason: params[:reason],
|
reason: params[:reason],
|
||||||
)
|
)
|
||||||
|
|
||||||
if result[:status] == 201
|
@response[:status] = :okay
|
||||||
@response[:status] = :okay
|
@response[:message] = t(".success", parameter: params[:type].titleize)
|
||||||
@response[:message] = t(".success", parameter: params[:type].titleize)
|
@response[:success] = true
|
||||||
@response[:success] = true
|
|
||||||
else
|
|
||||||
@response[:message] = t(".error")
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue