X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/6df3d73c4a0c52d79f3e8abe5180fbd73953a6a5..9086b07aefc0560832373bb4ba30888d8d43f0d6:/app/models/full_voter.rb diff --git a/app/models/full_voter.rb b/app/models/full_voter.rb index 04071a0..980fb5c 100644 --- a/app/models/full_voter.rb +++ b/app/models/full_voter.rb @@ -5,7 +5,7 @@ class FullVoter < Voter def create_password token_generator = UniqueTokenGenerator.new( 16 ) until password and not password.empty? \ - and Voter.find_all( [ "password = ?", password ]).empty? + and Voter.find(:all, :conditions => [ "password = ?", password ]).empty? self.password = token_generator.token end end