aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-25 13:48:36 +0200
committerPetteri Räty <petsku@petteriraty.eu>2011-06-05 23:38:12 +0300
commit6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac (patch)
treecaeacb40a8877a446bbda259a2f90fff60d9631c /site/config
parentBot posts voting results to webapp (diff)
downloadcouncil-webapp-6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac.tar.gz
council-webapp-6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac.tar.bz2
council-webapp-6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac.zip
Bugfix: broken agenda initializer
Diffstat (limited to 'site/config')
-rw-r--r--site/config/initializers/agenda.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/config/initializers/agenda.rb b/site/config/initializers/agenda.rb
index dccc29f..bdd35b9 100644
--- a/site/config/initializers/agenda.rb
+++ b/site/config/initializers/agenda.rb
@@ -1,7 +1,7 @@
# If there are no active agendas create one
begin
return unless ['development', 'production'].include? Rails.env
- return unless Agenda.state_is_not(:old).count > 0
+ return if Agenda.state_is_not(:old).count > 0
Agenda.create!
rescue
# Just ignore it. It will happen when: