Adds view mode on budget investments

This commit is contained in:
decabeza
2018-03-23 20:01:00 +01:00
parent 74ed61d159
commit 2f5561bf03
4 changed files with 66 additions and 0 deletions

View File

@@ -147,6 +147,10 @@ module Budgets
TagCloud.new(Budget::Investment, params[:search])
end
def set_view
@view = (params[:view] == "minimal") ? "minimal" : "default"
end
def investments
if @current_order == 'random'
@investments.apply_filters_and_search(@budget, params, @current_filter)