Moves bi management controller
This commit is contained in:
@@ -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
|
||||||
Reference in New Issue
Block a user