mirror of
https://github.com/discourse/discourse.git
synced 2025-04-21 10:28:34 +08:00

This was refactored from an actual Mixin some time back. This PR moves the function to the lib folder and keeps the same logic/interface otherwise. We'll remove the mixin file once all non-core repos change to use the new file.