lib/wisper/mongoid.rb in fhwang-wisper-mongoid-0.2.0 vs lib/wisper/mongoid.rb in fhwang-wisper-mongoid-0.2.1
- old
+ new
@@ -1,12 +1,14 @@
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