blob: 264a77adc3fb13599e9aab9ff8d55c60db77a797 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class LfsFileLockEntity < Grape::Entity
root 'locks', 'lock'
expose :path
expose(:id) { |entity| entity.id.to_s }
expose(:created_at, as: :locked_at) { |entity| entity.created_at.to_s(:iso8601) }
expose :owner do
expose(:name) { |entity| entity.user&.name }
end
end
|