aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-07-20 20:45:16 +0200
committerPetteri Räty <petsku@petteriraty.eu>2011-08-03 12:51:57 +0300
commit33abbf833236f957ff49d46951ee0dad294c677e (patch)
tree27f53754b62c7de3045af7a917cf425f7143c5ee /site/app/models/agenda_item.rb
parentMake some more actions available only to council members (diff)
downloadcouncil-webapp-33abbf833236f957ff49d46951ee0dad294c677e.tar.gz
council-webapp-33abbf833236f957ff49d46951ee0dad294c677e.tar.bz2
council-webapp-33abbf833236f957ff49d46951ee0dad294c677e.zip
Custom doodle-like feature
Diffstat (limited to 'site/app/models/agenda_item.rb')
-rw-r--r--site/app/models/agenda_item.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/site/app/models/agenda_item.rb b/site/app/models/agenda_item.rb
index 1f30599..db5e0ae 100644
--- a/site/app/models/agenda_item.rb
+++ b/site/app/models/agenda_item.rb
@@ -22,6 +22,7 @@ class AgendaItem < ActiveRecord::Base
discussion :string
body :markdown
rejected :boolean, :default => false
+ poll :boolean, :default => false
timelimits :text
discussion_time :string
timestamps
@@ -33,6 +34,7 @@ class AgendaItem < ActiveRecord::Base
validate :timelimits_entered_properly
+ attr_readonly :poll
# --- Permissions --- #
def create_permitted?
return false if acting_user.guest?