Commit d5886465 authored by James Lopez's avatar James Lopez

fix specs

parent f5a69b09
module OauthApplications module OauthApplications
extend ActiveSupport::Concern extend ActiveSupport::Concern
prepend ::EE::OauthApplications prepend ::EE::Concerns::OauthApplications
included do included do
before_action :prepare_scopes, only: [:create, :update] before_action :prepare_scopes, only: [:create, :update]
......
module EE module EE
module Concerns
module OauthApplications module OauthApplications
extend ActiveSupport::Concern extend ActiveSupport::Concern
def log_audit_event def log_audit_event
AuditEventService.new(current_user, ::AuditEventService.new(current_user,
current_user, current_user,
action: :custom, action: :custom,
custom_message: 'OAuth access granted', custom_message: 'OAuth access granted',
...@@ -11,4 +12,5 @@ module EE ...@@ -11,4 +12,5 @@ module EE
.for_user(@application.name).security_event .for_user(@application.name).security_event
end end
end end
end
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