blob: 1de0a0204cf88926873e1b82d3e7bf6a1fe6bc82 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
module Gitlab
module Git
class WikiPageVersion
include Gitlab::Utils::StrongMemoize
attr_reader :commit, :format
def initialize(commit, format)
@commit = commit
@format = format
end
delegate :message, :sha, :id, :author_name, :author_email, :authored_date, to: :commit
def author
strong_memoize(:author) do
::User.find_by_any_email(author_email)
end
end
end
end
end
|