mirror of
https://github.com/discourse/discourse.git
synced 2025-05-03 05:44:33 +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.