public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/council-webapp:master commit in: site/config/initializers/
@ 2011-06-05 20:43 Petteri Räty
  0 siblings, 0 replies; only message in thread
From: Petteri Räty @ 2011-06-05 20:43 UTC (permalink / raw
  To: gentoo-commits

commit:     6f5090fa205cf6074caa4f2f50b3c3f9965dd6ac
Author:     Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com>
AuthorDate: Wed May 25 11:48:36 2011 +0000
Commit:     Petteri Räty <betelgeuse <AT> gentoo <DOT> org>
CommitDate: Sun Jun  5 20:38:12 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=6f5090fa

Bugfix: broken agenda initializer

---
 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:



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2011-06-05 20:43 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-05 20:43 [gentoo-commits] proj/council-webapp:master commit in: site/config/initializers/ Petteri Räty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox