<HTML>
<HEAD>
<TITLE>Problem with after_update</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>Hi everyone,<BR>
<BR>
Has anyone successfully used betternestedset with acts_as_versioned?<BR>
<BR>
I’m having problems with one of the callbacks:<BR>
<BR>
Inside vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb (line 205):<BR>
<BR>
<B>after_update :save_version <BR>
</B><BR>
Doesn’t seem the save_version method is being called. I fixed it by changing it to after_save (which makes it work).<BR>
<BR>
I’ve been getting before_update and after_update callback problems in my model after adding betternestedset to it. I suspect it’s because betternestedset overrides AR’s update method in order to avoid concurrency issues with the rgt and lft columns.<BR>
<BR>
Any help?<BR>
<BR>
Thanks<BR>
Conrad</SPAN></FONT>
</BODY>
</HTML>