Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Specify what #starts_with? we're talking about. Also added a note what

kind of exception we should expect for this internal comment.
  • Loading branch information...
commit 17b0edde5782c424dbae6020e09a51831e8de7f9 1 parent dbe3345
@zzak zzak authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activesupport/lib/active_support/dependencies.rb
View
3  activesupport/lib/active_support/dependencies.rb
@@ -407,7 +407,8 @@ def autoloadable_module?(path_suffix)
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
Please sign in to comment.
Something went wrong with that request. Please try again.