Displaying 1 result from an estimated 1 matches for "find_ev".
Did you mean:
  find_vq
  
2006 Jul 19
1
Catch 22 with after_save. Please help.
I have a pretty strange problem. Here is basically what I have to  
demonstrate my problem:
class Event < ActiveRecord::Base
	def after_create
		AnotherClass.find_event(id)
	end
end
class AnotherClass < ActiveRecord::Base
	def self.find_event(event_id)
		e = Event.find event_id
	end
end
Here is the catch 22 and it''s quite annoying. Basically ActiveRecord  
puts to whole save action into a transaction. If an exception is  
raised in the after_creat...