Sha256: 65d122670b4434e045ac21e2aa1adc636af21de4f0c4a7203937ff6226b9d92a
Contents?: true
Size: 872 Bytes
Versions: 17
Compression:
Stored size: 872 Bytes
Contents
module RR # Replication extenders are modules that provide database specific functionality # required for replication. They are mixed into ActiveRecord database connections. # This module itself only provides functionality to register and retrieve # such extenders. module ReplicationExtenders # Returns a Hash of currently registered replication extenders. # (Empty Hash if no replication extenders were defined.) def self.extenders @extenders ||= {} @extenders end # Registers one or multiple replication extender. # extender is a Hash with # key:: The adapter symbol as used by ActiveRecord::Connection Adapters, e. g. :postgresql # value:: Name of the module implementing the replication extender def self.register(extender) @extenders ||= {} @extenders.merge! extender end end end
Version data entries
17 entries across 17 versions & 2 rubygems