Which is the purpose of the loops (wrapped to avoid word wrapping)
klass.instance_variables.each { |var|
klass.send(:remove_instance_variable, var)
}
klass.instance_methods(false).each { |m|
klass.send :undef_method, m
}
in ActiveRecord::Base.reset_subclasses? Why is not enough to
remove_const reloadable subclasses?
-- fxn
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Core" group.
To post to this group, send email to rubyonrails-core@googlegroups.com
To unsubscribe from this group, send email to
rubyonrails-core-unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---