【发布时间】:2020-02-26 10:56:13
【问题描述】:
Rails 带有一系列默认包含的中间件。但是如果我想将参数传递给中间件怎么办?例如,ActionDispatch::RemoteIp 采用两个可选参数:ip_spoofing_check and custom_proxies。如何重新配置已经包含的 ActionDispatch::RemoteIp 中间件,但将我自己的值传递给 custom_proxies?
【问题讨论】:
标签: ruby-on-rails ruby rack