Add setting to allow remove investments supports
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
module Budgets
|
||||
module Investments
|
||||
class VotesController < ApplicationController
|
||||
include FeatureFlags
|
||||
feature_flag :remove_investments_supports, only: :destroy
|
||||
|
||||
load_and_authorize_resource :budget
|
||||
load_and_authorize_resource :investment, through: :budget, class: "Budget::Investment"
|
||||
load_and_authorize_resource through: :investment, through_association: :votes_for, only: :destroy
|
||||
|
||||
Reference in New Issue
Block a user