Commit 7188975c authored by James Lopez's avatar James Lopez

update initializers

parent 9621dd0c
module Emails module Emails
class BaseService class BaseService
def initialize(user, opts) def initialize(current_user, user, opts)
@current_user = current_user
@user = user @user = user
@email = opts[:email] @email = opts[:email]
end end
......
...@@ -2,7 +2,8 @@ module Users ...@@ -2,7 +2,8 @@ module Users
class UpdateService < BaseService class UpdateService < BaseService
include NewUserNotifier include NewUserNotifier
def initialize(user, params = {}) def initialize(current_user, user, params = {})
@current_user = current_user
@user = user @user = user
@params = params.dup @params = params.dup
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment