Sha256: 8ee5306e4ee376626942a454ebdc25cc957686b2cc36317d42616d06edf65d8e
Contents?: true
Size: 374 Bytes
Versions: 1
Compression:
Stored size: 374 Bytes
Contents
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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fhwang-wisper-mongoid-0.2.1 | lib/wisper/mongoid.rb |