Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6ada9d89
Commit
6ada9d89
authored
Jul 10, 2019
by
Etienne Baqué
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed a method into 'target_type_value'
parent
d4f0d945
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
ee/lib/audit/details.rb
ee/lib/audit/details.rb
+8
-8
No files found.
ee/lib/audit/details.rb
View file @
6ada9d89
...
...
@@ -27,15 +27,15 @@ module Audit
case
action
.
keys
.
first
when
:add
"Added
#{
value
}#{
@details
[
:as
]
?
" as
#{
@details
[
:as
]
}
"
:
''
}
"
"Added
#{
target_type_
value
}#{
@details
[
:as
]
?
" as
#{
@details
[
:as
]
}
"
:
''
}
"
when
:remove
"Removed
#{
value
}
"
"Removed
#{
target_type_
value
}
"
when
:failed_login
"Failed to login with
#{
Gitlab
::
Auth
::
OAuth
::
Provider
.
label_for
(
value
).
upcase
}
authentication"
"Failed to login with
#{
Gitlab
::
Auth
::
OAuth
::
Provider
.
label_for
(
target_type_
value
).
upcase
}
authentication"
when
:custom_message
value
target_type_
value
else
text_for_change
(
value
)
text_for_change
(
target_type_
value
)
end
end
...
...
@@ -48,10 +48,10 @@ module Audit
changed
.
join
(
' '
)
end
def
value
target_type
=
@details
[
:target_type
]
.
constantize
def
target_type_
value
target_type
=
@details
[
:target_type
]
val
=
@details
.
values
.
first
target_type
==
Operations
::
FeatureFlag
?
val
:
val
.
tr
(
'_'
,
' '
)
target_type
==
'Operations::FeatureFlag'
?
val
:
val
.
tr
(
'_'
,
' '
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment