@ -30,7 +30,7 @@
module API
module V3
module Users
class UsersRepresenter < ::API::Decorators::Collection
class UserCollectionRepresenter < ::API::Decorators::Collection
collection :users, as: -> (*) { as || :users }, exec_context: :decorator, embedded: true
@ -8,7 +8,7 @@ module API
build_representer(
available_watchers,
::API::V3::Users::UserModel,
::API::V3::Users::UsersRepresenter,
::API::V3::Users::UserCollectionRepresenter,
as: :available_watchers
)
end
@ -59,7 +59,7 @@ module API
available_assignees = @work_package.assignable_assignees
build_representer(available_assignees,
as: :available_assignees)