Sha256: 51dfa23c763548f4bc664127b6d4ba5139a0db7eaf1a51837803ea91bcc2c9a6

Contents?: true

Size: 299 Bytes

Versions: 3

Compression:

Stored size: 299 Bytes

Contents

module SyncMachine
  module Mongoid
    # Adapt generic SyncMachine functionality to Mongoid.
    module Adapter
      def self.change_listener_changed_keys(record)
        record.changes.keys
      end

      def self.record_id_for_job(record_id)
        record_id.to_s
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sync_machine_mongoid-0.5.0 lib/sync_machine/mongoid/adapter.rb
sync_machine_mongoid-0.4.0 lib/sync_machine/mongoid/adapter.rb
sync_machine_mongoid-0.3.0 lib/sync_machine/mongoid/adapter.rb