Le 8 nov. 07 ? 01:10, Conrad Chu a ?crit :
> Hi everyone,
>
> Has anyone successfully used betternestedset with acts_as_versioned?
>
> I?m having problems with one of the callbacks:
>
> Inside vendor/plugins/acts_as_versioned/lib/acts_as_versioned.rb
> (line 205):
>
> after_update :save_version
>
> Doesn?t seem the save_version method is being called. I fixed it by
> changing it to after_save (which makes it work).
>
> 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.
>
> Any help?
>
> Thanks
> Conrad
Hi,
I ''ve corrected the problem and i will give, in few days, a patch to
the developers team.
Sincerely yours,
--
Aimeric Pieters
Epita 2009
lesotdudestin at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://rubyforge.org/pipermail/betternestedset-talk/attachments/20071108/e1b9d515/attachment.html