Commit 0a0d4ac2 authored by James Lopez's avatar James Lopez

fix a couple of issues

parent 0643187c
...@@ -5,6 +5,7 @@ module Applications ...@@ -5,6 +5,7 @@ module Applications
def initialize(current_user, params) def initialize(current_user, params)
@current_user = current_user @current_user = current_user
@params = params @params = params
@ip_address = @params.delete(:ip_address)
end end
def execute def execute
......
...@@ -4,6 +4,7 @@ module Keys ...@@ -4,6 +4,7 @@ module Keys
def initialize(user, params) def initialize(user, params)
@user, @params = user, params @user, @params = user, params
@ip_address = @params.delete(:ip_address)
end end
def notification_service def notification_service
......
module EE module EE
module Keys module Keys
module CreateService module CreateService
def initialize(user, params)
super(user, params)
@ip_address = @params.delete(:ip_address)
end
def execute def execute
super.tap do |key| super.tap do |key|
log_audit_event(key) log_audit_event(key)
......
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