Permalink
Browse files

Use caller for helpers_dir deprecation warnings

  • Loading branch information...
jeremy committed Jun 28, 2010
1 parent b3318bd commit f8011e67b002990e1c25550c161ab0af6af6620f
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_controller/metal/helpers.rb
@@ -58,12 +58,12 @@ module Helpers
module ClassMethods
def helpers_dir
- ActiveSupport::Deprecation.warn "helpers_dir is deprecated, use helpers_path instead"
+ ActiveSupport::Deprecation.warn "helpers_dir is deprecated, use helpers_path instead", caller
self.helpers_path
end
def helpers_dir=(value)
- ActiveSupport::Deprecation.warn "helpers_dir= is deprecated, use helpers_path= instead"
+ ActiveSupport::Deprecation.warn "helpers_dir= is deprecated, use helpers_path= instead", caller
self.helpers_path = Array(value)
end

0 comments on commit f8011e6

Please sign in to comment.