aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorZachary Scott <zachary@zacharyscott.net>2014-02-09 03:07:33 +0200
committerZachary Scott <zachary@zacharyscott.net>2014-02-09 12:27:43 +0100
commit17b0edde5782c424dbae6020e09a51831e8de7f9 (patch)
tree65f0625ab19d74773137fe70867c9d0d082174cf /activesupport
parentdbe3345c4f84f603b8a6d121229d1cc9f5d3be8c (diff)
downloadrails-17b0edde5782c424dbae6020e09a51831e8de7f9.tar.gz
rails-17b0edde5782c424dbae6020e09a51831e8de7f9.tar.bz2
rails-17b0edde5782c424dbae6020e09a51831e8de7f9.zip
Specify what #starts_with? we're talking about. Also added a note what
kind of exception we should expect for this internal comment.
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/dependencies.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/dependencies.rb b/activesupport/lib/active_support/dependencies.rb
index 6be19771f5..b519ef9f71 100644
--- a/activesupport/lib/active_support/dependencies.rb
+++ b/activesupport/lib/active_support/dependencies.rb
@@ -407,7 +407,8 @@ module ActiveSupport #:nodoc:
end
def load_once_path?(path)
- # to_s works around a ruby1.9 issue where #starts_with?(Pathname) will always return false
+ # to_s works around a ruby1.9 issue where String#starts_with?(Pathname)
+ # will raise a TypeError: no implicit conversion of Pathname into String
autoload_once_paths.any? { |base| path.starts_with? base.to_s }
end