Permalink
Browse files

Add caller to request_uri deprecation notice

  • Loading branch information...
1 parent 93422af commit 52efbdcdefa678ae2ee9530bcfefd0e2529b188f Carlhuda committed with Carl Lerche Mar 4, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 actionpack/lib/action_dispatch/http/url.rb
  2. +1 −1 railties/lib/rails/rack/logger.rb
@@ -88,7 +88,7 @@ def subdomain(tld_length = 1)
# Returns the request URI, accounting for server idiosyncrasies.
# WEBrick includes the full URL. IIS leaves REQUEST_URI blank.
def request_uri
- ActiveSupport::Deprecation.warn "Using #request_uri is deprecated. Use fullpath instead."
+ ActiveSupport::Deprecation.warn "Using #request_uri is deprecated. Use fullpath instead.", caller
fullpath
end
@@ -19,7 +19,7 @@ def call(env)
def before_dispatch(env)
request = ActionDispatch::Request.new(env)
- path = request.request_uri.inspect rescue "unknown"
+ path = request.fullpath.inspect rescue "unknown"
info "\n\nStarted #{request.method.to_s.upcase} #{path} " <<
"for #{request.remote_ip} at #{Time.now.to_s(:db)}"

0 comments on commit 52efbdc

Please sign in to comment.