search for: reset_subclass

Displaying 4 results from an estimated 4 matches for "reset_subclass".

Did you mean: reset_subclasses
2006 Mar 02
3
reloadable classes for other base classes than the built-ins
...9;'t mean to offend the Eminent 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...
2006 Nov 05
1
Non-Fatal Anonymous Module Error
...fig/../vendor/rails/activesupport/lib/active_support/dependencies.rb:313:in `to_constant_name'' ./script/../config/../vendor/rails/activesupport/lib/active_support/dependencies.rb:270:in `autoloaded?'' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:278:in `reset_subclasses'' ./script/../config/../vendor/rails/activerecord/lib/active_record/base.rb:277:in `reset_subclasses'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:57:in `reset_application!'' ./script/../config/../vendor/rails/railties/lib/dispatcher.rb:110:in `reset_afte...
2006 Jul 05
2
Serialized object behaves weird
Hi! I got a class named EinsatzFilter which I serialized to session. Before saving to session it works afterwards I keep getting the message: "undefined method `to_s'' for #<Person:0x38c6ab8>". "Person" is a from ActiveRecord::Base inherited class. Code: class EinsatzFilter include ApplicationHelper attr_reader :personen, :monat, :projekte, :kunde
2006 Mar 26
4
edge and 1.8.2/1.8.4 issues
I recently upgraded to 1.8.4 to try out mongrel, and so far have been in a kind of hell where I can''t get my app working! Currently running (or trying to run): Ruby version 1.8.4 (i386-mswin32) RubyGems version 0.8.11 Rails version 1.0.0 Active Record version 1.13.2 Action Pack version 1.11.2 Action Web Service version 1.0.0 Action Mailer version 1.1.5 Active Support version