module Peek
  module ControllerHelpers
    extend ActiveSupport::Concern

    included do
      prepend_before_filter :set_peek_request_id, :if => :peek_enabled?
      helper_method :peek_enabled?
    end

    protected

    def set_peek_request_id
      Peek.request_id = env['action_dispatch.request_id']
    end

    def peek_enabled?
      Peek.enabled?
    end
  end
end

module Peek
  module ControllerHelpers
    extend ActiveSupport::Concern

    included do
      prepend_before_filter :set_peek_request_id, :if => :peek_enabled?
      helper_method :peek_enabled?
    end

    protected

    def set_peek_request_id
      Peek.request_id = request.uuid
    end

    def peek_enabled?
      Peek.enabled?
    end
  end
end

Use request.uuid instead of env variable
Use request.uuid instead of env variable
