consul/consul

View on GitHub
app/helpers/officers_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module OfficersHelper
  def vote_collection_shift?
    current_user.poll_officer.officer_assignments.voting_days.where(date: Time.current.to_date).any?
  end

  def final_recount_shift?
    current_user.poll_officer.officer_assignments.final.where(date: Time.current.to_date).any?
  end

  def no_shifts?
    current_user.poll_officer.officer_assignments.where(date: Time.current.to_date).blank?
  end
end