Fixed issue shown resources in the dashboard
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
class ProposalsDashboardController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
|
||||
helper_method :proposal, :proposed_actions, :proposal_dashboard_action
|
||||
helper_method :proposal, :proposed_actions, :resources, :proposal_dashboard_action
|
||||
respond_to :html
|
||||
layout 'proposals_dashboard'
|
||||
|
||||
@@ -76,4 +76,8 @@ class ProposalsDashboardController < ApplicationController
|
||||
def proposed_actions
|
||||
@proposed_actions ||= ProposalDashboardAction.proposed_actions.active_for(proposal)
|
||||
end
|
||||
|
||||
def resources
|
||||
@resources ||= ProposalDashboardAction.resources.active_for(proposal)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user