Class: Doodle::UserChannel

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
AASM
Defined in:
app/models/doodle/user_channel.rb

Constant Summary collapse

STATUSES =
{
  online:  'online',
  offline: 'offline'
}

Instance Method Summary collapse

Instance Method Details

#log_status_changeObject



34
35
36
# File 'app/models/doodle/user_channel.rb', line 34

def log_status_change
  Rails.logger.info "[POC] [CHANNEL] - Analyst #{self.user.} change your status from #{aasm.from_state} to #{aasm.to_state}"
end