instance method redirect

Ruby on Rails 8.0.4

Since v7.1.6 Last seen in v8.0.4

Available in: v7.1.6 v7.2.3 v8.0.4

Signature

redirect(event)

No documentation comment.

Parameters

event req
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

Type at least 2 characters to search.

↑↓ navigate · open · esc close