<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -8,17 +8,18 @@ module StrokeDB
     #
     def index_slots(*args)
       slots = args.map{|a| a.is_a?(Array) ? a.map{|e|e.to_s} : [a.to_s] }
-      view_name = &quot;index_slots_for_#{name}:#{nsurl}&quot;
-      doc = document # metadocument
-      opts = { :only =&gt; name, :slots =&gt; slots, :doc_meta =&gt; doc }
-      doc.index_slots_view = View.define!(view_name, opts) do |view|
-        def view.map(uuid, doc)
-          meta = self['doc_meta']
-          slots.each do |sl|
-            k = sl.inject([]) do |a, sn|
-              a &lt;&lt; sn &lt;&lt; doc[sn]
+      @meta_initialization_procs &lt;&lt; Proc.new do
+        view_name = &quot;index_slots_for_#{name}:#{nsurl}&quot;
+        opts = { :only =&gt; name, :slots =&gt; slots, :doc_meta =&gt; doc }
+        doc.index_slots_view = View.define!(view_name, opts) do |view|
+          def view.map(uuid, doc)
+            meta = self['doc_meta']
+            slots.each do |sl|
+              k = sl.inject([]) do |a, sn|
+                a &lt;&lt; sn &lt;&lt; doc[sn]
+              end
+              [[meta, k], doc]
             end
-            [[meta, k], doc]
           end
         end
       end</diff>
      <filename>lib/strokedb/document/index_slots.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3e40ce01088d938ad69041ad6fe6cca51ff61a44</id>
    </parent>
  </parents>
  <author>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </author>
  <url>http://github.com/yrashk/strokedb/commit/8c24572711a8b960f2b61f28e47412475b69e43d</url>
  <id>8c24572711a8b960f2b61f28e47412475b69e43d</id>
  <committed-date>2008-04-29T22:57:51-07:00</committed-date>
  <authored-date>2008-04-29T22:57:51-07:00</authored-date>
  <message>added meta_initialization proc</message>
  <tree>2e5cd6ca68345142973d1c52e0b15524a6240465</tree>
  <committer>
    <name>Oleg Andreev</name>
    <email>oleganza@idbns.com</email>
  </committer>
</commit>
