class RequestId::Configuration

Attributes

generate[RW]

If set to true, the rack middleware will automatically generate a request id. Useful in development. Defaults to true if this is a rails app an we’re in development.

Public Class Methods

new() click to toggle source
# File lib/request_id/configuration.rb, line 8
def initialize
  @generate = defined?(Rails) && Rails.env.development?
end