search for: remove_class

Displaying 7 results from an estimated 7 matches for "remove_class".

2007 Sep 10
2
Removing an AR class definition, for testing plugins
...ould go there too. Unfortunately what''s happening is that the definition from the second spec is being used for the first spec...so when running both specs, the first fails. However if I comment out the second spec, the first one passes. I''ve tried using remove_const and Object.remove_class. Neither seems to work. I need to start with a fresh class definition before each description is run...how can I do that? Pat
2006 Feb 03
4
(BUG in svn/trunk?) - superclass mismatch for any subclass of ApplicationController
I track svn/trunk of Rails using svn:externals Some change to Rails committed in the last 1-2 days broke my subclass of ApplicationController The example, below, works with Rails 1.0, but in today''s svn, it dies with the following error: "superclass mismatch for class FooController" class ApplicationController < ActionController::Base end class FooController <
2006 Jul 29
2
uninitialized constant ApplicationController
...g/inflections.rb:59:in `constantize''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/module/introspection.rb:6:in `parent''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/class/removal.rb:16:in `remove_class''", "/usr/lib/ruby/gems/1.8/gems/activesupport-1.3.1/lib/active_support/core_ext/class/removal.rb:11:in `remove_class''", "/usr/lib/ruby/gems/1.8/gems/rails-1.1.2/lib/dispatcher.rb:55:in `reset_application!''", "/usr/lib/ruby/gems/1.8/gems/...
2006 Mar 02
3
reloadable classes for other base classes than the built-ins
I''m working on the plugin for RBatis and a new little thing I''m toying around with called ActiveMessaging (sorry, David I stole the name from you from the TW AwayDay ;-)). Anyway, in both these applications I want to be able to have reloadable classes that don''t extend any of the standard built in ones. So, I don''t mean to offend the Eminent Core Members by
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 10
0
WEBrick crashing
...00 DRb::DRbTCPSocket#accept 0.00 6.55 0.00 1 0.00 0.00 Class#const_missing 0.00 6.55 0.00 1 0.00 0.00 Hash#clear 0.00 6.55 0.00 1 0.00 0.00 Array#flatten 0.00 6.55 0.00 1 0.00 15.00 Class#remove_class 0.00 6.55 0.00 1 0.00 0.00 WEBrick::GenericServer#sta rt 0.00 6.55 0.00 1 0.00 0.00 WEBrick::HTTPRequest#read_ body 0.00 6.55 0.00 2 0.00 0.00 Thread#current 0.00 6.55 0.00 1 0.00 47.00 Ac...
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