Creates the basic layout for the dashboard
This commit is contained in:
Juan Salvador Pérez García
2018-06-08 13:12:43 +02:00
parent 1db5a00eae
commit 212c088d35
13 changed files with 312 additions and 8 deletions

View File

@@ -0,0 +1,20 @@
# frozen_string_literal: true
# Proposals dashboard
class ProposalsDashboardController < ApplicationController
before_action :authenticate_user!
helper_method :proposal
respond_to :html
layout 'proposals_dashboard'
def index
authorize! :dashboard, proposal
end
private
def proposal
@proposal ||= Proposal.find(params[:proposal_id])
end
end