Only compute :only and :except callback conditions once
Ref: https://github.com/rails/rails/issues/38679 `_normalize_callback_options` mutates the options hash, but doesn't remove the `:only` and `:except` conditions. So if you call `before_action` & al with the same option hash you end up with multiple instance of identical `:if` / `:unless` procs
Showing
想要评论请 注册 或 登录