# Нестабильное поведение в классе UserUpdater

**URL:** <https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360>\
**Category:** Development\
**Created:** [19.Август.2020 09:58:37 UTC](https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360 "2020-08-19T09:58:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [19.Август.2020 09:58:37 UTC](https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360/1 "2020-08-19T09:58:37Z")

</div>

@eviltrout

Шаги для воспроизведения:

1. Создадим поле пользователя с идентификатором `1`.
2. Запустите вторую строку приведенного ниже кода дважды.

## Случай 1

```plaintext
up = UserUpdater.new(Discourse.system_user, User.find(1))
up.update({:custom_fields=>{:user_field_1=>
```

---

_[View the full topic](https://meta.discourse.org/t/inconsistent-behaviour-in-userupdater-class/161360)._
