Files
nairobi/app/controllers/budgets/ballots_controller.rb
2016-09-10 16:22:40 +02:00

17 lines
311 B
Ruby

module Budgets
class BallotsController < ApplicationController
before_action :authenticate_user!
before_action :load_ballot
load_and_authorize_resource
def show
end
private
def load_ballot
@ballot = Ballot.where(user: current_user).first_or_create
end
end
end