disable CodeReuse/ActiveRecord

This commit is contained in:
JB Vasseur 2018-10-12 09:41:36 +09:00
parent 23d70f6281
commit 1dbbd0b9b0
1 changed files with 2 additions and 0 deletions

View File

@ -25,6 +25,7 @@ module API
end
end
# rubocop: disable CodeReuse/ActiveRecord
desc 'Get applications' do
success Entities::ApplicationWithSecret
end
@ -32,6 +33,7 @@ module API
applications = Doorkeeper::Application.where("owner_id IS NULL")
present applications, with: Entities::Application
end
# rubocop: enable CodeReuse/ActiveRecord
# rubocop: disable CodeReuse/ActiveRecord
desc 'Delete an application'