|
@@ -22,21 +22,19 @@ class Verbindungslehrer < Sequel::Model(:verbindungslehrer);end
|
|
|
|
|
|
class SV < Sinatra::Application
|
|
|
configure do
|
|
|
- newrelic_ignore '/ping'
|
|
|
use Rack::Session::Cookie, :key => 'rack.session',
|
|
|
:path => '/',
|
|
|
:secret => (ENV['PW_SESSION_SECRET'] || 'your_secret'),
|
|
|
:expire_after => 2592000
|
|
|
Slim::Engine.set_options pretty: true
|
|
|
- set(:wahlbeginn) do |zeit|
|
|
|
- condition do
|
|
|
- zeit >= Time.new(2016,9,11,12).to_i
|
|
|
- end
|
|
|
- end
|
|
|
enable :static
|
|
|
set :public_folder, File.dirname(__FILE__) + '/public'
|
|
|
end
|
|
|
|
|
|
+ configure :production do
|
|
|
+ newrelic_ignore '/ping'
|
|
|
+ end
|
|
|
+
|
|
|
helpers do
|
|
|
def protected!
|
|
|
return if authorized?
|