allows user to support only in one heading per group

This commit is contained in:
rgarcia
2017-01-13 15:24:57 +01:00
parent a771408f4b
commit b2b9954e6d
8 changed files with 102 additions and 2 deletions

View File

@@ -61,6 +61,10 @@ module Budgets
def vote
@investment.register_selection(current_user)
load_investment_votes(@investment)
respond_to do |format|
format.html { redirect_to budget_investments_path(heading_id: @investment.heading.id) }
format.js
end
end
private