def voted_by?(voted_by)
      !!votes.find_by(voted_by_id: voted_by.id)
    rescue NoMethodError, Mongoid::Errors::DocumentNotFound
      false
    end
def voted_by?(voted_by)
      !!votes.find_by(voted_by_id: voted_by.id)
    rescue NoMethodError, Mongoid::Errors::DocumentNotFound
      false
    end
Indicates whether the document has a vote from particular voter object.

 @param [Mongoid::Document] voted_by object from which the vote was done
 @return [Boolean]