<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>Le 8 nov. 07 à 01:10, Conrad Chu a écrit :</div><br class="Apple-interchange-newline"><blockquote type="cite"><div> <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. &nbsp;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. &nbsp;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></div></blockquote><br></div><div><br class="webkit-block-placeholder"></div><div>Hi,</div><div><br class="webkit-block-placeholder"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>I 've corrected the problem and i will give, in few days, a patch to the&nbsp;developers&nbsp;team.<br class="webkit-block-placeholder"></div><div><br class="webkit-block-placeholder"></div><div>Sincerely yours,</div></div><br><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>--&nbsp;</div><div><br class="webkit-block-placeholder"></div><div>Aimeric Pieters</div><div>Epita 2009</div><div><a href="mailto:lesotdudestin@gmail.com">lesotdudestin@gmail.com</a></div><div><br class="webkit-block-placeholder"></div></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br></body></html>