Fixes #voodoorai2000 comments

Fixes some comments from #voodoorai2000 for the PR to consul
This commit is contained in:
Juan Salvador Pérez García
2018-07-27 16:30:03 +02:00
parent a41ce7a0bd
commit 50f73abb0c
33 changed files with 541 additions and 404 deletions

View File

@@ -1,6 +1,8 @@
class Dashboard::BaseController < ApplicationController
before_action :authenticate_user!
include Dashboard::HasProposal
helper_method :proposal, :proposed_actions, :resource, :resources, :next_goal, :next_goal_supports, :next_goal_progress, :community_members_count
respond_to :html
@@ -8,10 +10,6 @@ class Dashboard::BaseController < ApplicationController
private
def proposal
@proposal ||= Proposal.includes(:community).find(params[:proposal_id])
end
def proposed_actions
@proposed_actions ||= Dashboard::Action.proposed_actions.active_for(proposal).order(order: :asc)
end