Adapt collection naming scheme

pull/1656/head
Hagen Schink 10 years ago
parent d9f62aa242
commit b84d89dbd2
  1. 2
      lib/api/v3/users/user_collection_representer.rb
  2. 2
      lib/api/v3/work_packages/watchers_api.rb
  3. 2
      lib/api/v3/work_packages/work_packages_api.rb

@ -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,
::API::V3::Users::UserModel,
::API::V3::Users::UsersRepresenter,
::API::V3::Users::UserCollectionRepresenter,
as: :available_assignees)
end

Loading…
Cancel
Save