diff --git a/actionpack/lib/action_controller/flash.rb b/actionpack/lib/action_controller/flash.rb index 6721a69d8c..9f50b9571d 100644 --- a/actionpack/lib/action_controller/flash.rb +++ b/actionpack/lib/action_controller/flash.rb @@ -174,7 +174,7 @@ module ActionController #:nodoc: # deprecated. use flash.keep instead def keep_flash #:doc: - ActiveSupport::Deprecation.warn 'keep_flash is deprecated; use flash.keep instead.' + ActiveSupport::Deprecation.warn 'keep_flash is deprecated; use flash.keep instead.', caller flash.keep end end diff --git a/actionpack/lib/action_view/helpers/asset_tag_helper.rb b/actionpack/lib/action_view/helpers/asset_tag_helper.rb index d31b42b565..93f04968f9 100644 --- a/actionpack/lib/action_view/helpers/asset_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/asset_tag_helper.rb @@ -126,7 +126,7 @@ module ActionView ActiveSupport::Deprecation.warn( "You've called image_path with a source that doesn't include an extension. " + "In Rails 2.0, that will not result in .png automatically being appended. " + - "So you should call image_path('#{source}.png') instead" + "So you should call image_path('#{source}.png') instead", caller ) end