2020-01-26 13:08:47 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module API
|
|
|
|
module Entities
|
|
|
|
class UserWithAdmin < UserPublic
|
|
|
|
expose :admin?, as: :is_admin
|
2020-05-28 05:08:05 -04:00
|
|
|
expose :note
|
2020-01-26 13:08:47 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2020-10-02 20:08:46 -04:00
|
|
|
|
2021-05-11 17:10:21 -04:00
|
|
|
API::Entities::UserWithAdmin.prepend_mod_with('API::Entities::UserWithAdmin')
|