Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4965

Show
Ignore:
Timestamp:
09/04/06 03:36:13 (2 years ago)
Author:
bitsweat
Message:

pass caller to deprecation warning

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/base.rb

    r4952 r4965  
    492492            ActiveSupport::Deprecation.warn( 
    493493              "You called url_for(:#{options}), which is a deprecated API call. Instead you should use the named " + 
    494               "route directly, like #{options}(). Using symbols and parameters with url_for will be removed from Rails 2.0." 
     494              "route directly, like #{options}(). Using symbols and parameters with url_for will be removed from Rails 2.0.", 
     495              caller 
    495496            ) 
    496497 
     
    682683              ActiveSupport::Deprecation.warn( 
    683684                "You called render('#{options}'), which is a deprecated API call. Instead you use " + 
    684                 "render :file => #{options}. Calling render with just a string will be removed from Rails 2.0." 
     685                "render :file => #{options}. Calling render with just a string will be removed from Rails 2.0.", 
     686                caller 
    685687              ) 
    686688