Kaynağa Gözat

newrelic raus und condition weg

hmt 8 yıl önce
ebeveyn
işleme
55c37b7b30
1 değiştirilmiş dosya ile 4 ekleme ve 6 silme
  1. 4 6
      sv.rb

+ 4 - 6
sv.rb

@@ -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?