mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
pass caller to deprecation warning
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4965 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
6ca6c5de3a
commit
29f04510e9
1 changed files with 4 additions and 2 deletions
|
@ -491,7 +491,8 @@ module ActionController #:nodoc:
|
|||
when Symbol
|
||||
ActiveSupport::Deprecation.warn(
|
||||
"You called url_for(:#{options}), which is a deprecated API call. Instead you should use the named " +
|
||||
"route directly, like #{options}(). Using symbols and parameters with url_for will be removed from Rails 2.0."
|
||||
"route directly, like #{options}(). Using symbols and parameters with url_for will be removed from Rails 2.0.",
|
||||
caller
|
||||
)
|
||||
|
||||
send(options, *parameters_for_method_reference)
|
||||
|
@ -681,7 +682,8 @@ module ActionController #:nodoc:
|
|||
else
|
||||
ActiveSupport::Deprecation.warn(
|
||||
"You called render('#{options}'), which is a deprecated API call. Instead you use " +
|
||||
"render :file => #{options}. Calling render with just a string will be removed from Rails 2.0."
|
||||
"render :file => #{options}. Calling render with just a string will be removed from Rails 2.0.",
|
||||
caller
|
||||
)
|
||||
|
||||
return render_file(options, deprecated_status, true)
|
||||
|
|
Loading…
Reference in a new issue