debian-mirror-gitlab/lib/api/entities/avatar.rb

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

12 lines
241 B
Ruby
Raw Permalink Normal View History

2020-03-09 13:42:32 +05:30
# frozen_string_literal: true
module API
module Entities
class Avatar < Grape::Entity
expose :avatar_url do |avatarable, options|
avatarable.avatar_url(only_path: false, size: options[:size])
end
end
end
end