lib/active_support/dependencies.rb in activesupport-1.1.0 vs lib/active_support/dependencies.rb in activesupport-1.1.1
- old
+ new
@@ -37,10 +37,10 @@
file_name = "#{file_name}.rb" unless ! load? || file_name[-3..-1] == '.rb'
load? ? load(file_name) : require(file_name)
end
def remove_subclasses_for(*classes)
- classes.each { |klass| klass.remove_subclasses }
+ Object.remove_subclasses_of(*classes)
end
# LoadingModules implement namespace-safe dynamic loading.
# They support automatic loading via const_missing, allowing contained items to be automatically
# loaded when required. No extra syntax is required, as expressions such as Controller::Admin::UserController