Permalink
Browse files

cleaned up vague depreciation message regarding config.load_paths

  • Loading branch information...
1 parent a61a39e commit a37d07dd4eb9e7efff90172a51f72ba68969a63a @m3talsmith m3talsmith committed Sep 6, 2010
Showing with 4 additions and 4 deletions.
  1. +4 −4 activesupport/lib/active_support/dependencies.rb
@@ -28,13 +28,13 @@ module Dependencies #:nodoc:
# Deprecated, use autoload_paths.
def self.load_paths
- ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_paths is deprecated, please use autoload_paths instead", caller)
+ ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_paths is deprecated, please use config.autoload_paths instead", caller)
autoload_paths
end
# Deprecated, use autoload_paths=.
def self.load_paths=(paths)
- ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_paths= is deprecated, please use autoload_paths= instead", caller)
+ ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_paths= is deprecated, please use config.autoload_paths= instead", caller)
self.autoload_paths = paths
end
@@ -45,13 +45,13 @@ def self.load_paths=(paths)
# Deprecated, use autoload_once_paths.
def self.load_once_paths
- ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_once_paths is deprecated and removed in Rails 3, please use autoload_once_paths instead", caller)
+ ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_once_paths is deprecated and removed in Rails 3, please use config.autoload_once_paths instead", caller)
autoload_once_paths
end
# Deprecated, use autoload_once_paths=.
def self.load_once_paths=(paths)
- ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_once_paths= is deprecated and removed in Rails 3, please use autoload_once_paths= instead", caller)
+ ActiveSupport::Deprecation.warn("ActiveSupport::Dependencies.load_once_paths= is deprecated and removed in Rails 3, please use config.autoload_once_paths= instead", caller)
self.autoload_once_paths = paths
end

0 comments on commit a37d07d

Please sign in to comment.