adds booth backend for index, show, create and edit actions

This commit is contained in:
rgarcia
2016-09-28 11:56:19 +02:00
committed by kikito
parent 6d7d6e67ea
commit 63ccac963a
18 changed files with 287 additions and 80 deletions

View File

@@ -40,12 +40,13 @@ module Abilities
can [:search, :create, :index, :destroy], ::Manager
can [:search, :create, :index, :destroy], ::Poll::Officer
can [:manage], Poll
can :manage, Annotation
can [:read, :update, :destroy, :summary], SpendingProposal
can [:search, :edit, :update, :create, :index, :destroy], Banner
can [:manage], Poll
can [:manage], Poll::Booth
end
end
end

View File

@@ -2,5 +2,7 @@ class Poll
class Booth < ActiveRecord::Base
belongs_to :poll
has_many :voters
validates :name, presence: true
end
end