daily pastebin goal
19%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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