diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2011-05-25 13:48:36 +0200 |
---|---|---|
committer | Petteri Räty <petsku@petteriraty.eu> | 2011-06-05 23:38:12 +0300 |
commit | 6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac (patch) | |
tree | caeacb40a8877a446bbda259a2f90fff60d9631c /site/config | |
parent | Bot posts voting results to webapp (diff) | |
download | council-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.rb | 2 |
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: |