diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-07-20 20:45:16 +0200 |
---|---|---|
committer | Petteri Räty <petsku@petteriraty.eu> | 2011-08-03 12:51:57 +0300 |
commit | 33abbf833236f957ff49d46951ee0dad294c677e (patch) | |
tree | 27f53754b62c7de3045af7a917cf425f7143c5ee /site/app/models/agenda_item.rb | |
parent | Make some more actions available only to council members (diff) | |
download | council-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.rb | 2 |
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? |