难道你不能将一个方法传递给 before_action 来检查你的条件吗?
fzngagan
(Faizaan Gagan)
2
相关话题
| 话题 | 回复 | 浏览量 | 活动 | |
|---|---|---|---|---|
| Proper place to propose a permissions predicate? | 1 | 137 | 2025 年2 月 21 日 | |
| Guardian before and after checks api | 4 | 344 | 2024 年7 月 29 日 | |
| More detailed response for API /post_actions failures | 4 | 1215 | 2017 年4 月 25 日 | |
| How to add route to root path | 3 | 540 | 2021 年4 月 8 日 | |
| Allow specifiy user different from guardian.user in chat services such as Chat::CreateMessage | 3 | 693 | 2023 年12 月 4 日 |