Displaying 1 result from an estimated 1 matches for "case_caus".
Did you mean:
case_causes
2007 Jun 01
0
"Exception: stack level too deep" on collection.clear?
...#39;m wondering if anyone has any
clues what might give rise to the error posted below. It occurs when
I run my unit tests.
class Actor < AR:Base
belongs_to :court_case
end
class CaseCause < AR:Base
belongs_to :court_case
end
class CourtCase < AR:Base
has_many :actors
has_many :case_causes
...
end
def my_test_method
... kase.actors.clear
end
def my_other_method
... kase.case_causes.clear
end
Also, Actor and CaseCause both have observers on them that attempt to
update CourtCase.
---------------------
Exception: stack level too deep
C:/ruby/lib/ruby/gems/1.8/gems/activereco...