lib/saasable/mongoid/scoped_document.rb in saasable-0.3.1 vs lib/saasable/mongoid/scoped_document.rb in saasable-0.3.2

- old
+ new

@@ -4,11 +4,13 @@ def self.included klass @scoped_documents << klass unless @scoped_documents.include? klass klass.extend ClassMethods klass.class_eval do + # Fields field :saas_id, :type => BSON::ObjectId + # Indexes index :saas_id index [[:saad_id, 1], [:_id, 1]] end end