Skip to content

voteable.save fails for more complex models #9

Description

@chodorowicz

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions