discourse/plugins/discourse-reactions/lib
Ethan M 5894923294
DEV: NameError when resolving reactions serializer helpers
The `ReactionsSerializerHelpers` module was defined inline inside
`plugin.rb`'s `after_initialize` block as a top-level constant, and
`posts_reaction_loader.rb` referenced it as `::ReactionsSerializerHelpers`.
That reference is fragile under autoload/reload — the constant can be
missing when the loader is required, raising NameError.

Move the helpers into `lib/discourse_reactions/reactions_serializer_helpers.rb`,
namespace them under `DiscourseReactions::`, and update all call sites.
The two previously-separate `module ReactionsSerializerHelpers` fragments
are merged into one module with no logic changes.
2026-05-26 13:04:29 +08:00
..
discourse_reactions DEV: NameError when resolving reactions serializer helpers 2026-05-26 13:04:29 +08:00
tasks
reaction_for_like_site_setting_enum.rb
reactions_excluded_from_like_site_setting_validator.rb UX: Reactions default improvements (#38776) 2026-03-24 10:41:14 +10:00