class RemoteIpProxyScrubber::Rails3_0::RemoteIPLogger

Protected Instance Methods

before_dispatch(env) click to toggle source
# File lib/remote_ip_proxy_scrubber/remote_ip_logger.rb, line 78
def before_dispatch(env)
  request = ActionDispatch::Request.new(env)
  path = request.fullpath

  info "\n\nStarted #{request.request_method} \"#{path}\" " \
       "for #{request.remote_ip} at #{Time.now.to_default_s}"
end