daily pastebin goal
13%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 53 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. class SyspanelSqlLogger
  2.   def initialize(app)
  3.     @app = app
  4.   end
  5.  
  6.   def call(env)
  7.     Thread.current["syspanel.sql.logger.enabled"] = (env['REQUEST_URI'] =~ /mypath/).present?
  8.    
  9.     @app.call(env)
  10.   end
  11. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top