search for: destroy_without_callback

Displaying 6 results from an estimated 6 matches for "destroy_without_callback".

2005 Dec 31
6
habtm recursion via destroy_without_callbacks
...model has: has_and_belongs_to_many :people The trouble comes when trying to destroy something, I end up with a recursive stack sequence that looks something like: (eval):7:in `destroy_without_habtm_shim_for_teams'' (eval):9:in `destroy_without_habtm_shim_for_teams'' (eval):9:in `destroy_without_callbacks'' ... This appears to be due to something in associations.rb where the association array is cleared as part of destroying the record. What appears to be happening is that when person.rb is loaded, its HABTM causes team.rb to be loaded which ends up reloading person.rb? I''ve a...
2006 Mar 29
0
Intermittent error - undefined method ''destroy_without_callbacks''
When testing my app locally I''m getting intermittent errors which are driving me mad! The error is: NameError ((eval):1:in `alias_method'': undefined method `destroy_without_callbacks'' for class `Exercise''): Refreshing the browser sometimes fixes it, as does restarting WEBrick. Annoying to debug as it only happens intermittently. Any ideas on why this is happening, or indeed how to track it down? Full traceback is as follows: NameError ((eval):1:in `alias...
2006 Mar 23
2
rails 1.1 and mysql errors
Hi, I just upgraded to rails 1.1 this morning and i am getting a variety of errors from tests that were passing effortlessly on the previous edge release (i froze several weeks ago, so I not sure what version that was). Has anyone else experienced these types errors with the new rails: I have several errors that are grouped around create and destroy commands the errors are similar, first the
2006 Mar 31
1
Active Record: subclassing a model
...nt has_and_belongs_to_many :projects #project.account pulls up the project owner and #project.partners pulls up all partners, including the owner. Now, this all seems to work fine but every now and then I get the following error message: (eval):1:in `alias_method'': undefined method `destroy_without_callbacks'' for class `Partner'' ....trace..... This error occured while loading the following files: ./script/../config/../app/controllers/application.rb login_system.rb user.rb account.rb project.rb partner.rb I can''t figure out how to correct this. Any ideas...
2005 Dec 20
0
Problem destroying in unit tests with HABTM
...gories'' (eval):4:in `destroy_without_habtm_shim_for_categories'' (eval):4:in `destroy_without_habtm_shim_for_categories'' (eval):4:in `destroy_without_habtm_shim_for_categories'' (eval):4:in `destroy_without_habtm_shim_for_categories'' (eval):4:in `destroy_without_callbacks'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/callbacks.rb:321:in `destroy_witho c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_record/transactions.rb:122:in `destroy'' c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.13.1/lib/active_recor...
2007 Jun 01
0
"Exception: stack level too deep" on collection.clear?
...Exception: stack level too deep C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/ associations/association_collection.rb:69:in `clear'' (eval):3:in `destroy_without_habtm_shim_for_actors'' (eval):4:in `destroy_without_habtm_shim_for_actors'' (eval):4:in `destroy_without_callbacks'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/ callbacks.rb:321:in `destroy_without_transactions'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.15.2/lib/active_record/ transactions.rb:125:in `destroy'' C:/ruby/lib/ruby/gems/1.8/gems/activerecord-1....