Class: ErrorRadar::ErrorActivity

Inherits:
ApplicationRecord show all
Defined in:
app/models/error_radar/error_activity.rb

Constant Summary collapse

ACTION_ICONS =
{
  'resolved'       => '',
  'reopened'       => '',
  'in_progress'    => '',
  'open'           => '',
  'ignored'        => '',
  'assigned'       => '',
  'unassigned'     => '×',
  'commented'      => '💬',
  'comment_deleted'=> '🗑'
}.freeze

Instance Method Summary collapse

Instance Method Details

#iconObject



21
22
23
# File 'app/models/error_radar/error_activity.rb', line 21

def icon
  ACTION_ICONS.find { |k, _| action.to_s.start_with?(k) }&.last || '·'
end