Permalink
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...
1 parent 9598176 commit bd09d9aafb56912ba384a20ac3dfd7bfd7a784e4 @dhh dhh committed Sep 5, 2006
@@ -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
@@ -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

0 comments on commit bd09d9a

Please sign in to comment.