Skip to content

Commit

Permalink
Use caller for helpers_dir deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy committed Jun 28, 2010
1 parent b3318bd commit f8011e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/lib/action_controller/metal/helpers.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@ module Helpers


module ClassMethods module ClassMethods
def helpers_dir 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 self.helpers_path
end end


def helpers_dir=(value) 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) self.helpers_path = Array(value)
end end


Expand Down

0 comments on commit f8011e6

Please sign in to comment.