12 lines
249 B
Ruby
12 lines
249 B
Ruby
# frozen_string_literal: true
|
|
|
|
module API
|
|
module Entities
|
|
class UserWithAdmin < UserPublic
|
|
expose :admin?, as: :is_admin
|
|
expose :note
|
|
end
|
|
end
|
|
end
|
|
|
|
API::Entities::UserWithAdmin.prepend_mod_with('API::Entities::UserWithAdmin')
|