Class: DailyFocus::CoachingNote

Inherits:
ApplicationRecord show all
Defined in:
app/models/daily_focus/coaching_note.rb

Overview

A sales manager's standing coaching instruction for one rep, injected into
that rep's daily Sunny briefing (see DailyFocus::Prompt#coaching_note_section)
every day until the manager clears it. One row per employee.

Constant Summary

Constants included from Models::Schedulable

Models::Schedulable::SIMPLE_FORM_OPTIONS

Instance Attribute Summary collapse

Belongs to collapse

Methods inherited from ApplicationRecord

ransackable_associations, ransackable_attributes, ransackable_scopes, ransortable_attributes, #to_relation

Methods included from Models::Schedulable

config

Methods included from Models::AfterCommittable

#after_commit

Methods included from Models::EventPublishable

#publish_event

Instance Attribute Details

#bodyvoid (readonly)

This method returns an undefined value.



16
# File 'app/models/daily_focus/coaching_note.rb', line 16

validates :body, presence: true

Instance Method Details

#employeeParty

Returns:



12
# File 'app/models/daily_focus/coaching_note.rb', line 12

belongs_to :employee, inverse_of: :daily_focus_coaching_note