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

Changeset 5021

Show
Ignore:
Timestamp:
09/05/06 22:08:33 (2 years ago)
Author:
david
Message:

caller is necessary for proper trace in deprecation

Files:

Legend:

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

    r4952 r5021  
    175175        # deprecated. use <tt>flash.keep</tt> instead 
    176176        def keep_flash #:doc: 
    177           ActiveSupport::Deprecation.warn 'keep_flash is deprecated; use flash.keep instead.' 
     177          ActiveSupport::Deprecation.warn 'keep_flash is deprecated; use flash.keep instead.', caller 
    178178          flash.keep 
    179179        end 
  • trunk/actionpack/lib/action_view/helpers/asset_tag_helper.rb

    r5003 r5021  
    127127            "You've called image_path with a source that doesn't include an extension. " + 
    128128            "In Rails 2.0, that will not result in .png automatically being appended. " + 
    129             "So you should call image_path('#{source}.png') instead" 
     129            "So you should call image_path('#{source}.png') instead", caller 
    130130          ) 
    131131        end