title: How to disable Rack-Mini-Profiler temporarily?
body: <p>I'm using rack mini profiler in rails just fine, but during some coding sessions especially where I'm working on a lot of different client side code, it gets in the way. (mainly in my client side debugging tools network graphs, etc.)</p>
  
  <p>I'm trying to turn it off with a before filter, that also serves to see if the user is authorized to see the profile anyway, but "deauthorize" doesn't seem to do anything for me.  Here's my code called as a before filter:</p>
  
  <pre><code>def miniprofiler  
   off = true
   if off || !current_user
    Rack::MiniProfiler.deauthorize_request
    return
   elsif current_user.role_symbols.include?(:view_page_profiles)    
    Rack::MiniProfiler.authorize_request
    return
   end
   Rack::MiniProfiler.deauthorize_request
  end
  </code></pre>
  
  <p>I also know there is a setting "Rack::MiniProfiler.config.authorization_mode" but I can't find docs on what the possible settings are, and not seeing it used in the code?  Right now its telling me :allow_all, but :allow_none doesn't do anything either.</p>
  
  <p>Even if I can just temporarily set a value in the dev environment file and restart the server, that would serve my purposes.</p>