SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # config/initializers/umbra.rb
  2. require 'umbra'
  3.  
  4. Umbra.configure do |config|
  5.   config.redis_options = { url: ENV['REDISCLOUD_URL'] } # connect to our redis instance
  6.   config.error_handler = proc { |e| Bugsnag.notify(e) } # notify our error tracker
  7.   config.request_selector = proc { |env, _resp| env['REQUEST_METHOD'] == 'GET' } # only replicate GET requests
  8.   config.logger = Rails.logger
  9. end
  10.  
  11. Rails.application.config.middleware.use Umbra::Middleware
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top