They aren't used since commitsa6585361,3752f3a5,88a7a29d,eef8ad1b,f67f058b,04910feaand9181610d. The method `image_bytes_to_megabytes` was never used and is a duplicate of the method `bytes_to_megabytes`.
14 lines
406 B
Ruby
14 lines
406 B
Ruby
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
|