Class: Lateness

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/lateness.rb

Overview

Schema Information

Table name: latenesses

id         :integer          not null, primary key
reason     :string(255)
shift_id   :integer
notify     :boolean          default(FALSE)
created_at :datetime
updated_at :datetime

Instance Method Summary collapse

Instance Method Details

#shift_detailObject



22
23
24
# File 'app/models/lateness.rb', line 22

def shift_detail
  "AS #{shift.job_name} from #{shift.start_time.strftime('%H:%M')} to #{shift.end_time.strftime('%H:%M')} on #{shift.formatted_due_date}"
end