summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2016-08-16 22:45:24 +0200
committerHarald Eilertsen <haraldei@anduin.net>2016-08-16 22:45:24 +0200
commit1d9bb8ebb5d4f84da5ab659477dff74d25621e3a (patch)
tree0061f6db16912767116bb60ae0f5f490ba3c58e8
parentc3316a339c0f62d8b19fe7c2c1a9f23e9651bd55 (diff)
downloadnorsk-urskog-registrations-1d9bb8ebb5d4f84da5ab659477dff74d25621e3a.tar.gz
norsk-urskog-registrations-1d9bb8ebb5d4f84da5ab659477dff74d25621e3a.tar.bz2
norsk-urskog-registrations-1d9bb8ebb5d4f84da5ab659477dff74d25621e3a.zip
Don't match before filter for /registrations_closed.
-rw-r--r--registration.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/registration.rb b/registration.rb
index da11e4e..bc62cfa 100644
--- a/registration.rb
+++ b/registration.rb
@@ -13,7 +13,7 @@ class RegistrationApp < Sinatra::Base
config_file File.join(settings.root, 'config.yml')
- before do
+ before %r{^(?!/registrations_closed$)} do
redirect to('/registrations_closed') unless accept_registrations(settings)
end