# 在插件中覆盖 user\_guardian.rb（无需 fork！）

**URL:** https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839
**Category:** Development
**Created:** [2021年一月3日 03:36 UTC](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839 "2021-01-03T03:36:43Z")
**Posts on this page:** 1
**Showing post:** 20

<div class="post-metadata">

### Author: ![Jonathan5](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jonathan5/32/197134_2.png) [@Jonathan5](https://meta.discourse.org/u/Jonathan5)
#### Post date: [2021年一月4日 10:19 UTC](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839/20 "2021-01-04T10:19:10Z")

</div>

> [@leighno5](#):
>
> 而且很可能存在最佳实践

你是按照 [Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727?u=jonathan5) 的完整路径进行的，还是直接在您的生产站点上操作并听天由命？

---

_[View the full topic](https://meta.discourse.org/t/overriding-user-guardian-rb-in-a-plugin-no-fork-necessary/174839)._
