diff options
author | James Lopez <james@jameslopez.es> | 2017-09-27 16:39:10 +0200 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2017-09-28 08:46:39 +0200 |
commit | 1dcb7111107ed5a6b6258613d804b8da56af8b35 (patch) | |
tree | ccd463f601f4fada16e95dfc57796850aa1b85e7 /app/services/emails | |
parent | e07819cbf70511ad38c107dc593ec87606567cdc (diff) | |
download | gitlab-ce-1dcb7111107ed5a6b6258613d804b8da56af8b35.tar.gz |
refactor emails servicerefactor-services
Diffstat (limited to 'app/services/emails')
-rw-r--r-- | app/services/emails/base_service.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/emails/base_service.rb b/app/services/emails/base_service.rb index 8810f6d8803..7f591c89411 100644 --- a/app/services/emails/base_service.rb +++ b/app/services/emails/base_service.rb @@ -1,8 +1,8 @@ module Emails class BaseService - def initialize(current_user, user, opts) + def initialize(current_user, opts) @current_user = current_user - @user = user + @user = opts.delete(:user) @email = opts[:email] end end |