# כיצד אוכל להוסיף מאפיין למודל המשתמש?

**URL:** <https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348>\
**Category:** Development\
**Created:** [27 באוגוסט,‏ 2022,‏ 5:27pm UTC](https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348 "2022-08-27T17:27:48Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [27 באוגוסט,‏ 2022,‏ 5:44pm UTC](https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348/2 "2022-08-27T17:44:59Z")

</div>

Sorry this might not be much help, but it’s fast. 🙂

Something that you expect to be an array is `nil`. Mabye `args` is nil and needs to be a `[]`?

You can also take a look at [GitHub - discourse/all-the-plugins · GitHub](https://github.com/discourse/all-the-plugins) to try to find examples of what you’re trying to do (I can’t quite tell what you’re trying to do).

Check out discourse-calendar. It adds an `Event` class, which seems pretty analogous to what you’re trying to do.

There are a bunch of plugins taht have a similar `reloadable_patch` block, though.

---

_[View the full topic](https://meta.discourse.org/t/how-can-i-add-an-attribute-to-user-model/237348)._
