search for: remove_subclasses_for

Displaying 3 results from an estimated 3 matches for "remove_subclasses_for".

2006 Mar 02
3
reloadable classes for other base classes than the built-ins
...Core Members by digging up their little skeletons but this code in dispacher.rb is.... well, let''s settle with saying it''s not very extendable: def reset_application! Controllers.clear! Dependencies.clear ActiveRecord::Base.reset_subclasses Dependencies.remove_subclasses_for(ActiveRecord::Base, ActiveRecord::Observer, ActionController::Base) Dependencies.remove_subclasses_for(ActionMailer::Base) if defined?(ActionMailer::Base) end In ActiveMessaging I need to reset the application from a non-web scenario. (I have a polling process that receive messages from...
2006 Jan 19
2
Easy way to handle form input without a model class?
I have a couple forms that I''d like to be able to validate and automatically populate, but it shouldn''t be based on AR. In fact I often have a bunch of small forms that I can''t really justify writing a whole new model class for anyway. I''d like to validate the form input, and then use rails helpers to automatically populate the form if validations fail.
2005 Sep 27
5
Am I misunderstanding "require_dependency"?
Hi From what I understand about documentation about require_dependency, this function will work like require but the file will be reloaded on every request to the server when in development mode. I have bootstrapped am minimal RoR project with 0.13.1 Rails. I have created a minimal Controller and hooked up it''s "index" action at the site root. I have also created a