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
fee3fc38
Commit
fee3fc38
authored
Jun 03, 2021
by
Terri Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace deprecated methods update_attributes and update_attributes!
parent
73a754e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
doc/administration/maintenance_mode/index.md
doc/administration/maintenance_mode/index.md
+2
-2
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
...dministration/troubleshooting/gitlab_rails_cheat_sheet.md
+2
-2
doc/user/admin_area/settings/sign_in_restrictions.md
doc/user/admin_area/settings/sign_in_restrictions.md
+1
-1
No files found.
doc/administration/maintenance_mode/index.md
View file @
fee3fc38
...
...
@@ -35,8 +35,8 @@ There are three ways to enable Maintenance Mode as an administrator:
-
[
**Rails console**
](
../operations/rails_console.md#starting-a-rails-console-session
)
:
```
ruby
::
Gitlab
::
CurrentSettings
.
update
_attributes
!
(
maintenance_mode:
true
)
::
Gitlab
::
CurrentSettings
.
update
_attributes
!
(
maintenance_mode_message:
"New message"
)
::
Gitlab
::
CurrentSettings
.
update!
(
maintenance_mode:
true
)
::
Gitlab
::
CurrentSettings
.
update!
(
maintenance_mode_message:
"New message"
)
```
## Disable Maintenance Mode
...
...
doc/administration/troubleshooting/gitlab_rails_cheat_sheet.md
View file @
fee3fc38
...
...
@@ -1193,11 +1193,11 @@ Among other attributes, in the output you will notice that all the settings avai
You can then set anyone of Elasticsearch integration settings by issuing a command similar to:
```
ruby
ApplicationSetting
.
last
.
update
_attributes
(
elasticsearch_url:
'<your ES URL and port>'
)
ApplicationSetting
.
last
.
update
(
elasticsearch_url:
'<your ES URL and port>'
)
#or
ApplicationSetting
.
last
.
update
_attributes
(
elasticsearch_indexing:
false
)
ApplicationSetting
.
last
.
update
(
elasticsearch_indexing:
false
)
```
#### Getting attributes
...
...
doc/user/admin_area/settings/sign_in_restrictions.md
View file @
fee3fc38
...
...
@@ -76,7 +76,7 @@ If necessary, you can disable **Admin Mode** as an administrator by using one of
-
[
**Rails console**
](
../../../administration/operations/rails_console.md#starting-a-rails-console-session
)
:
```
ruby
::
Gitlab
::
CurrentSettings
.
update
_attributes
!
(
admin_mode:
false
)
::
Gitlab
::
CurrentSettings
.
update!
(
admin_mode:
false
)
```
## Two-factor authentication
...
...
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