Sha256: d45756dfd621ed17843d9aec00e3ca36130b5bf8ee749dda8388796471e4a33e
Contents?: true
Size: 401 Bytes
Versions: 4
Compression:
Stored size: 401 Bytes
Contents
require 'mongoid/document' require 'wisper/mongoid/version' require 'wisper/mongoid/publisher' # A micro library providing Ruby objects with Publish-Subscribe capabilities. module Wisper def self.model ::Wisper::Mongoid::Publisher end # Integrates Wisper wih Mongoid. module Mongoid def self.extend_all ::Mongoid::Document.class_eval { include Wisper.model } end end end
Version data entries
4 entries across 4 versions & 1 rubygems