diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-06 13:41:17 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-14 12:37:55 +0100 |
commit | eafe834c3da04aaba712fe1838c0edfff653b666 (patch) | |
tree | bfbaf5d1fac8f2cd5a8835d48ff908dd423fc038 /app/services/applications | |
parent | ed7144ad58c32936c902d93da23eeb2159ee0158 (diff) | |
download | gitlab-ce-eafe834c3da04aaba712fe1838c0edfff653b666.tar.gz |
Reduce remaining diff with EE in app/services
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/services/applications')
-rw-r--r-- | app/services/applications/create_service.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/applications/create_service.rb b/app/services/applications/create_service.rb index b6c30da4d3a..dff0d9696f8 100644 --- a/app/services/applications/create_service.rb +++ b/app/services/applications/create_service.rb @@ -2,16 +2,16 @@ module Applications class CreateService - # rubocop: disable CodeReuse/ActiveRecord + attr_reader :current_user, :params + def initialize(current_user, params) @current_user = current_user - @params = params.except(:ip_address) + @params = params.except(:ip_address) # rubocop: disable CodeReuse/ActiveRecord end - # rubocop: enable CodeReuse/ActiveRecord # EE would override and use `request` arg def execute(request) - Doorkeeper::Application.create(@params) + Doorkeeper::Application.create(params) end end end |