Module: YouthTree::Helpers::UuidTrackerHelper

Defined in:
lib/youth_tree/helpers/uuid_tracker_helper.rb

Instance Method Summary collapse

Instance Method Details

#current_request_uuidObject

Returns the current request uuid



6
7
8
# File 'lib/youth_tree/helpers/uuid_tracker_helper.rb', line 6

def current_request_uuid
  @current_request_uuid ||= request.env['rack.log-marker.uuid']
end

#uuid_marker_commentObject

Returns a html comment with the current request uuid



11
12
13
# File 'lib/youth_tree/helpers/uuid_tracker_helper.rb', line 11

def uuid_marker_comment
  "<!-- current-request-uuid: #{current_request_uuid} -->".html_safe if current_request_uuid.present?
end