debian-mirror-gitlab/lib/gitlab/loggable.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
230 B
Ruby
Raw Normal View History

2023-05-27 22:25:52 +05:30
# frozen_string_literal: true
module Gitlab
module Loggable
ANONYMOUS = '<Anonymous>'
def build_structured_payload(**params)
{ class: self.class.name || ANONYMOUS }.merge(params).stringify_keys
end
end
end