mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 19:01:54 +08:00

While using `OpenStruct` is nice, it’s generally not a very good idea as it usually leads to performance problems. The `OpenStruct` source code even says basically to avoid it. Since the context object is crucial in our services, this patch replaces `OpenStruct` with a custom implementation instead.