# Adding a method \`get\_like\` to PluginStore class

**URL:** <https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026>\
**Category:** Development\
**Created:** [August 6, 2019, 6:12pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026 "2019-08-06T18:12:26Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [August 8, 2019, 3:30pm UTC](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026/8 "2019-08-08T15:30:36Z")

</div>

> [@angus](#):
>
> However it is still used in places, including the core Discourse codebase itself, e.g. [in the Reviewables model](https://github.com/discourse/discourse/blob/master/app/models/reviewable.rb#L187).

As the author of that code I should maybe clarify it a little bit. The priority ids are constants and not relational data. I would absolutely recommend against using `something_id` when the ids are not known in advance. In this case each priority is thought of as a singleton, and I figured that any table I’d create would essentially be a clone of the PluginStore anyway!

---

_[View the full topic](https://meta.discourse.org/t/adding-a-method-get-like-to-pluginstore-class/125026)._
