Use double quotes in controllers/
This commit is contained in:
@@ -21,7 +21,7 @@ class Admin::BudgetHeadingsController < Admin::BaseController
|
||||
def create
|
||||
@heading = @group.headings.new(budget_heading_params)
|
||||
if @heading.save
|
||||
redirect_to headings_index, notice: t('admin.budget_headings.create.notice')
|
||||
redirect_to headings_index, notice: t("admin.budget_headings.create.notice")
|
||||
else
|
||||
render :new
|
||||
end
|
||||
@@ -29,7 +29,7 @@ class Admin::BudgetHeadingsController < Admin::BaseController
|
||||
|
||||
def update
|
||||
if @heading.update(budget_heading_params)
|
||||
redirect_to headings_index, notice: t('admin.budget_headings.update.notice')
|
||||
redirect_to headings_index, notice: t("admin.budget_headings.update.notice")
|
||||
else
|
||||
render :edit
|
||||
end
|
||||
@@ -38,9 +38,9 @@ class Admin::BudgetHeadingsController < Admin::BaseController
|
||||
def destroy
|
||||
if @heading.can_be_deleted?
|
||||
@heading.destroy
|
||||
redirect_to headings_index, notice: t('admin.budget_headings.destroy.success_notice')
|
||||
redirect_to headings_index, notice: t("admin.budget_headings.destroy.success_notice")
|
||||
else
|
||||
redirect_to headings_index, alert: t('admin.budget_headings.destroy.unable_notice')
|
||||
redirect_to headings_index, alert: t("admin.budget_headings.destroy.unable_notice")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user