2015-02-05 00:08:52 -05:00
|
|
|
# no reason to track this in development, that is 300+ redis calls saved per
|
|
|
|
# page view (we serve all assets out of thin in development)
|
2015-02-05 22:39:04 -05:00
|
|
|
if Rails.env != 'development' || ENV['TRACK_REQUESTS']
|
2015-02-05 00:08:52 -05:00
|
|
|
require 'middleware/request_tracker'
|
|
|
|
Rails.configuration.middleware.unshift Middleware::RequestTracker
|
|
|
|
end
|