Merge pull request #2563 from opf/fix/help_auto_loader

prefix representers to help the rails autoloader
pull/2614/head
ulferts 10 years ago
commit e984eebbd4
  1. 4
      lib/api/v3/users/users_api.rb
  2. 4
      lib/api/v3/work_packages/work_packages_api.rb

@ -37,7 +37,7 @@ module API
# Show updated user
status 200
UserRepresenter.new(@user, current_user: current_user)
Users::UserRepresenter.new(@user, current_user: current_user)
else
fail ::API::Errors::InvalidUserStatusTransition
end
@ -56,7 +56,7 @@ module API
end
get do
UserRepresenter.new(@user, current_user: current_user)
Users::UserRepresenter.new(@user, current_user: current_user)
end
delete do

@ -78,8 +78,8 @@ module API
before do
@work_package = WorkPackage.find(params[:id])
@representer = WorkPackageRepresenter.new(work_package,
current_user: current_user)
@representer = WorkPackages::WorkPackageRepresenter.new(work_package,
current_user: current_user)
end
get do

Loading…
Cancel
Save