Skip to content

Commit c1a89b5

Browse files
committed
Delete AS::Dependencies.load_once_path?
1 parent bde4b04 commit c1a89b5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

activesupport/lib/active_support/dependencies.rb

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,6 @@ def autoloadable_module?(path_suffix)
113113
nil
114114
end
115115

116-
def load_once_path?(path)
117-
# to_s works around a ruby issue where String#start_with?(Pathname)
118-
# will raise a TypeError: no implicit conversion of Pathname into String
119-
autoload_once_paths.any? { |base| path.start_with?(base.to_s) }
120-
end
121-
122116
# Get the reference for class named +name+.
123117
# Raises an exception if referenced class does not exist.
124118
def constantize(name)

0 commit comments

Comments
 (0)