make_voteable icon indicating copy to clipboard operation
make_voteable copied to clipboard

voteable.save fails for more complex models

Open chodorowicz opened this issue 14 years ago • 0 comments

I have a model which has some more complicated operations in before_save filter (parsing virtual attributes, finding or creating 2 associated models etc). When make_votable uses votable.save in vote actions my objects corrupted. The only change this save operation performs is incrementing or decrementing the count. Isn't it possible to do some kind of update on only this field instead of whole save with validation operation. This would also lead to better performance.

chodorowicz avatar Aug 07 '11 00:08 chodorowicz