adds booth backend for index, show, create and edit actions
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -2,5 +2,7 @@ class Poll
|
||||
class Booth < ActiveRecord::Base
|
||||
belongs_to :poll
|
||||
has_many :voters
|
||||
|
||||
validates :name, presence: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user