Commit f9f32231 authored by James Lopez's avatar James Lopez

add custom action to details

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