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
d0688db9
Commit
d0688db9
authored
Apr 07, 2022
by
mc_rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add timestamp to Arkose custom attributes
parent
0214d07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/models/user_custom_attribute.rb
app/models/user_custom_attribute.rb
+2
-2
No files found.
app/models/user_custom_attribute.rb
View file @
d0688db9
...
...
@@ -7,8 +7,8 @@ class UserCustomAttribute < ApplicationRecord
validates
:key
,
uniqueness:
{
scope:
[
:user_id
]
}
def
self
.
upsert_custom_attributes
(
custom_attributes
)
created_at
=
Date
.
today
updated_at
=
Date
.
today
created_at
=
Date
Time
.
now
updated_at
=
Date
Time
.
now
custom_attributes
.
map!
do
|
custom_attribute
|
custom_attribute
.
merge
({
created_at:
created_at
,
updated_at:
updated_at
})
...
...
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