module Replication::Model

Public Class Methods

included(model_class) click to toggle source
# File lib/replication/process.rb, line 40
def self.included(model_class)
  return if model_class.respond_to?(:can_replicate)
end

Public Instance Methods

replication_config() click to toggle source
# File lib/replication/process.rb, line 48
def replication_config
  self.class.replication_config
end
strand_class() click to toggle source
# File lib/replication/process.rb, line 44
def strand_class
  replication_config.strand_class
end

Private Instance Methods

_strand_attributes() click to toggle source
# File lib/replication/process.rb, line 54
def _strand_attributes
  send(replication_config.pairs_method).deep_symbolize_keys
end