Sha256: 6168ccca4e23c2712a7d9698e340f4056db728b79957d3f4aaf35b2f0d1f8fa4

Contents?: true

Size: 505 Bytes

Versions: 7

Compression:

Stored size: 505 Bytes

Contents

require "mongoid"
require "sync_machine"
require "sync_machine/mongoid/adapter"
require "sync_machine/version"
require "wisper/mongoid"

# A mini-framework for intelligently publishing complex model changes to an
# external API.
module SyncMachine
  def self.orm_adapter
    Mongoid::Adapter
  end

  # Mongoid-specific functionality for SyncMachine.
  module Mongoid
    def self.extended(base)
      SyncMachine.extended(base)
      base.extend SyncMachine
    end
  end
end

Wisper::Mongoid.extend_all

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
sync_machine_mongoid-0.8.1 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.8.0 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.7.0 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.6.0 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.5.0 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.4.0 lib/sync_machine/mongoid.rb
sync_machine_mongoid-0.3.0 lib/sync_machine/mongoid.rb