Class: Doodle::UserChannel
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Doodle::UserChannel
- 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_change ⇒ Object
34 35 36 |
# File 'app/models/doodle/user_channel.rb', line 34 def log_status_change Rails.logger.info "[POC] [CHANNEL] - Analyst #{self.user.login} change your status from #{aasm.from_state} to #{aasm.to_state}" end |