Sha256: a79d5db0e509c2686d4e4c46405be65e1ea26f88379637968005e27a1ab6566f

Contents?: true

Size: 669 Bytes

Versions: 1

Compression:

Stored size: 669 Bytes

Contents

module Org
  class AttendanceMailer < ApplicationMailer

    def normal_completion(member_id)
      @attendances = Attendance.where(member_id: member_id, finish_at: nil).where.not(start_at: nil)
      @member = Member.find member_id
      mail to: @member.email, subject: '[Admin] You have lost attendance logs, pleas re-punch on system!'
    end

    def interval_completion(member_id)
      @attendances = Attendance.where(member_id: member_id, interval_finish_at: nil).where.not(interval_start_at: nil)
      @member = Member.find member_id
      mail to: @member.email, subject: '[Admin] You have lost attendance logs, pleas re-punch on system!'
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_org-0.0.1 app/mailers/org/attendance_mailer.rb