Commit d5886465 authored by James Lopez's avatar James Lopez

fix specs

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