Merge branch 'master' into feature/2275#destroy_budgets
This commit is contained in:
@@ -27,7 +27,7 @@ class Admin::BudgetsController < Admin::BaseController
|
||||
|
||||
def update
|
||||
if @budget.update(budget_params)
|
||||
redirect_to admin_budget_path(@budget), notice: t('admin.budgets.update.notice')
|
||||
redirect_to admin_budgets_path, notice: t('admin.budgets.update.notice')
|
||||
else
|
||||
render :edit
|
||||
end
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
class BudgetsController < ApplicationController
|
||||
include FeatureFlags
|
||||
include BudgetsHelper
|
||||
feature_flag :budgets
|
||||
|
||||
load_and_authorize_resource
|
||||
@@ -9,6 +10,7 @@ class BudgetsController < ApplicationController
|
||||
respond_to :html, :js
|
||||
|
||||
def show
|
||||
raise ActionController::RoutingError, 'Not Found' unless budget_published?(@budget)
|
||||
end
|
||||
|
||||
def index
|
||||
|
||||
Reference in New Issue
Block a user