开发者

Will vote_fu work without a voter model?

开发者 https://www.devze.com 2023-02-19 02:34 出处:网络
Just looking into vote_fu for a public page where people can vote on content.I am interested in implementing this, but there will be no model to act_as_voter, only a model to act_as_votable开发者_Go百

Just looking into vote_fu for a public page where people can vote on content. I am interested in implementing this, but there will be no model to act_as_voter, only a model to act_as_votable开发者_Go百科. Is this doable? Anyone have experience with this?

Many thanks as always.

Ben


I'd not recommend doing that. The gem/plugin is built around the idea of a voter model. You might be able to tweak your implementation by creating your own migrations and overriding included methods to be still able to use vote_fu, but IMO that would be hardly worth it.

Thinking about an anonymous voting process in its simplest form you should be a lot faster by rolling your own custom version.

0

精彩评论

暂无评论...
验证码 换一张
取 消