diff --git a/app/controllers/budgets/ballot/lines_controller.rb b/app/controllers/budgets/ballot/lines_controller.rb index bd31c61fa..2feb83e5e 100644 --- a/app/controllers/budgets/ballot/lines_controller.rb +++ b/app/controllers/budgets/ballot/lines_controller.rb @@ -5,6 +5,7 @@ module Budgets #before_action :ensure_final_voting_allowed before_action :load_budget before_action :load_ballot + before_action :load_tag_cloud before_action :load_categories before_action :load_investments @@ -64,9 +65,14 @@ module Budgets @heading = @investment.heading end + def load_tag_cloud + @tag_cloud = TagCloud.new(Budget::Investment, params[:search]) + end + def load_categories @categories = ActsAsTaggableOn::Tag.where("kind = 'category'").order(:name) end + end end end