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
a72ce8ca
Commit
a72ce8ca
authored
Dec 24, 2019
by
nmilojevic1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace assign_attributes with public_sent
parent
b17f8920
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
lib/gitlab/import_export/relation_factory.rb
lib/gitlab/import_export/relation_factory.rb
+2
-2
No files found.
lib/gitlab/import_export/relation_factory.rb
View file @
a72ce8ca
...
...
@@ -134,11 +134,11 @@ module Gitlab
return
object
unless
value
references
.
each
do
|
key
|
attribute
=
key
.
delete_suffix
(
'_id'
)
.
to_sym
attribute
=
"
#{
key
.
delete_suffix
(
'_id'
)
}
="
.
to_sym
next
unless
object
.
respond_to?
(
key
)
&&
object
.
respond_to?
(
attribute
)
if
object
.
read_attribute
(
key
)
==
value
&
.
id
object
.
assign_attributes
(
attribute
=>
value
)
object
.
public_send
(
attribute
,
value
)
# rubocop:disable GitlabSecurity/PublicSend
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