Sha256: 62995cbb7dda43cb49845e331be42c6291795a8c47ac587d443a4c20e7661a0d
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
module SyncMachine module OrmAdapter # Adapt SyncMachine for use with Mongoid-based applications. module Mongoid def self.setup require "mongoid" require "wisper/mongoid" Wisper::Mongoid.extend_all end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sync_machine-0.2.0 | lib/sync_machine/orm_adapter/mongoid.rb |