loads tag cloud in balloting phase
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user