instance method
redirect
Ruby on Rails 8.0.4
Since v7.1.6 Last seen in v8.0.4Signature
redirect(event)
No documentation comment.
Parameters
-
eventreq
Source
# 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
Defined in actionpack/lib/action_dispatch/log_subscriber.rb line 7
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::LogSubscriber