method
before_dispatch
v3.0.0 -
Show latest stable
- Class:
Rails::Rack::Logger
before_dispatch(env)protected
No documentation available.
# File railties/lib/rails/rack/logger.rb, line 20
def before_dispatch(env)
request = ActionDispatch::Request.new(env)
path = request.fullpath
info "\n\nStarted #{env["REQUEST_METHOD"]} \"#{path}\" " \
"for #{request.ip} at #{Time.now.to_default_s}"
end