Commit f9f32231 authored by James Lopez's avatar James Lopez

add custom action to details

parent 752579fb
module Audit module Audit
class Details class Details
ACTIONS = %i[add remove failed_login change].freeze ACTIONS = %i[add remove failed_login change custom_message].freeze
def self.humanize(*args) def self.humanize(*args)
new(*args).humanize new(*args).humanize
...@@ -31,6 +31,8 @@ module Audit ...@@ -31,6 +31,8 @@ module Audit
"Removed #{value}" "Removed #{value}"
when :failed_login when :failed_login
"Failed to login with #{Gitlab::OAuth::Provider.label_for(value).upcase} authentication" "Failed to login with #{Gitlab::OAuth::Provider.label_for(value).upcase} authentication"
when :custom
value
else else
text_for_change(value) text_for_change(value)
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