方法
- R
实例公有方法
redirect(event) 链接
源代码: 显示 | 在 GitHub 上查看
# File actionpack/lib/action_dispatch/log_subscriber.rb, line 7 def redirect(event) payload = event.payload info { "Redirected to #{payload[:location]}" } info do status = payload[:status] message = +"Completed #{status} #{Rack::Utils::HTTP_STATUS_CODES[status]} in #{event.duration.round}ms" message << "\n\n" if defined?(Rails.env) && Rails.env.development? message end end