Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

caller is necessary for proper trace in deprecation

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit bd09d9aafb56912ba384a20ac3dfd7bfd7a784e4 1 parent 9598176
@dhh dhh authored
View
2  actionpack/lib/action_controller/flash.rb
@@ -174,7 +174,7 @@ def flash(refresh = false) #:doc:
# deprecated. use <tt>flash.keep</tt> 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
View
2  actionpack/lib/action_view/helpers/asset_tag_helper.rb
@@ -126,7 +126,7 @@ def image_path(source)
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
Please sign in to comment.
Something went wrong with that request. Please try again.