Commit fee3fc38 authored by Terri Chu's avatar Terri Chu

Replace deprecated methods update_attributes and update_attributes!

parent 73a754e9
......@@ -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
......
......@@ -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
......
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment