Module: Isimud::ModelWatcher

Extended by:
ActiveSupport::Concern
Includes:
Logging
Defined in:
lib/isimud/model_watcher.rb

Overview

ActiveModel mixin for sending model updates to a message server.

Defined Under Namespace

Modules: ClassMethods

Constant Summary

DEFAULT_EXCHANGE =
'models'
IGNORED_COLUMNS =
%w{id}

Instance Method Summary (collapse)

Methods included from Logging

#log, #logger

Instance Method Details

- (Object) isimud_sync



82
83
84
# File 'lib/isimud/model_watcher.rb', line 82

def isimud_sync
  isimud_send_action_message(:update)
end

- (Boolean) isimud_synchronize?

Override to set conditions for synchronizing this instance with the server (default is always)

Returns:

  • (Boolean)


78
79
80
# File 'lib/isimud/model_watcher.rb', line 78

def isimud_synchronize?
  true
end