forked from Trustie/forgeplus
修复:移除验证
This commit is contained in:
parent
6d112ffdf5
commit
c8c08e143c
|
|
@ -4,8 +4,6 @@ class UserVoteOption < ApplicationRecord
|
|||
|
||||
validates :user_id, uniqueness: { scope: :vote_option_id, message: "您已经投过票了" }
|
||||
|
||||
validate :user_can_vote_only_once_per_vote
|
||||
|
||||
private
|
||||
def user_can_vote_only_once_per_vote
|
||||
return unless user && vote_option
|
||||
|
|
|
|||
Loading…
Reference in New Issue