Sha256: 140c463914505fc5d8bd608d51f3fdd24794276528d1eda4e6e5afc2982f02d4

Contents?: true

Size: 384 Bytes

Versions: 4

Compression:

Stored size: 384 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

      def self.sufficient_changes_to_find_subjects?(_record)
        true
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sync_machine_mongoid-0.8.1 lib/sync_machine/mongoid/adapter.rb
sync_machine_mongoid-0.8.0 lib/sync_machine/mongoid/adapter.rb
sync_machine_mongoid-0.7.0 lib/sync_machine/mongoid/adapter.rb
sync_machine_mongoid-0.6.0 lib/sync_machine/mongoid/adapter.rb