mirror of
https://github.com/discourse/discourse.git
synced 2025-04-13 14:57:16 +08:00

The `ReviewableScore` model was defining class methods on `self.class` from a singleton context so instead of defining methods on `ReviewableScore` it was defining them on `Class`, so basically on every existing class. This patch resolves this issue. Using `enum` from `ActiveRecord` in the future will avoid this kind of problems.