Switch case statement for if

This commit is contained in:
Bertocq
2017-12-04 15:48:09 +01:00
parent b327420e72
commit 05a6c35b65

View File

@@ -131,8 +131,7 @@ module Budgets
end
def investments
case @current_order
when 'random'
if @current_order == 'random'
@investments.apply_filters_and_search(@budget, params, @current_filter)
.send("sort_by_#{@current_order}", params[:random_seed])
else