Moves bi management controller

This commit is contained in:
kikito
2016-12-02 19:16:31 +01:00
parent 104ccf11e4
commit 003056fe75

View File

@@ -1,4 +1,4 @@
class Management::BudgetInvestmentsController < Management::BaseController class Management::Budgets::InvestmentsController < Management::BaseController
before_action :only_verified_users, except: :print before_action :only_verified_users, except: :print
before_action :set_budget_investment, only: [:vote, :show] before_action :set_budget_investment, only: [:vote, :show]
@@ -19,7 +19,7 @@ class Management::BudgetInvestmentsController < Management::BaseController
@investment.author = managed_user @investment.author = managed_user
if @investment.save if @investment.save
redirect_to management_budget_investment_path(@investment), notice: t('flash.actions.create.notice', resource_name: Budget::Investment.model_name.human, count: 1) redirect_to management_budgets_investment_path(@investment), notice: t('flash.actions.create.notice', resource_name: Budget::Investment.model_name.human, count: 1)
else else
render :new render :new
end end