Don't define controller actions in helpers
This commit is contained in:
@@ -2,7 +2,6 @@ class Admin::BudgetInvestmentsController < Admin::BaseController
|
||||
include FeatureFlags
|
||||
include CommentableActions
|
||||
include DownloadSettingsHelper
|
||||
include ChangeLogHelper
|
||||
include Translatable
|
||||
|
||||
feature_flag :budgets
|
||||
@@ -62,6 +61,11 @@ class Admin::BudgetInvestmentsController < Admin::BaseController
|
||||
load_investments
|
||||
end
|
||||
|
||||
def show_investment_log
|
||||
@log = Budget::Investment::ChangeLog.find_by(id: params[:id])
|
||||
render "admin/change_logs/show"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def load_comments
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
module ChangeLogHelper
|
||||
def show_investment_log
|
||||
@log = Budget::Investment::ChangeLog.find_by(id: params[:id])
|
||||
render "admin/change_logs/show"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user