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
00de86e8
Commit
00de86e8
authored
Aug 26, 2020
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use args hash instead of **kwargs
parent
a0efb830
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
lib/gitlab/application_context.rb
lib/gitlab/application_context.rb
+1
-1
No files found.
lib/gitlab/application_context.rb
View file @
00de86e8
...
...
@@ -29,7 +29,7 @@ module Gitlab
Labkit
::
Context
.
current
.
to_h
.
include?
(
Labkit
::
Context
.
log_key
(
attribute_name
))
end
def
initialize
(
**
args
)
def
initialize
(
args
)
unknown_attributes
=
args
.
keys
-
APPLICATION_ATTRIBUTES
.
map
(
&
:name
)
raise
ArgumentError
,
"
#{
unknown_attributes
}
are not known keys"
if
unknown_attributes
.
any?
...
...
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