<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>bricks/sphinx/MIT-LICENSE</filename>
    </added>
    <added>
      <filename>bricks/sphinx/README</filename>
    </added>
    <added>
      <filename>bricks/sphinx/lib/use_sphinx.rb</filename>
    </added>
    <added>
      <filename>bricks/sphinx/migrate/20091102171258_add_delta_for_sphinx.rb</filename>
    </added>
    <added>
      <filename>bricks/sphinx/patch/node.rb</filename>
    </added>
    <added>
      <filename>bricks/sphinx/tasks/sphinx.rb</filename>
    </added>
    <added>
      <filename>config/sphinx.yml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,8 @@
 .DS_Store
 config/deploy_config.rb
 config/database.yml
+config/*.sphinx.conf
+db/sphinx
 doc/coverage
 log/
 pkg/*
@@ -9,6 +11,7 @@ public/images/ext/*_std.png
 public/images/ext/*_tiny.png
 public/images/ext/*_mini.png
 REVISION
+sandbox
 sites/*
 test/fixtures/*.yml
 tmp/*</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,18 @@
 test:
   tags:     ON
   captcha:  ON
+  sphinx:   OFF
 
 development:
   tags:     ON
   captcha:  ON
+  sphinx:
+    switch: ON
+    if_gem: 'thinking_sphinx'
 
 production:
   tags:     ON
   captcha:  ON
+  sphinx:
+    switch: ON
+    if_gem: 'thinking_sphinx'</diff>
      <filename>config/bricks.yml</filename>
    </modified>
    <modified>
      <diff>@@ -18,6 +18,12 @@ rmagick:
   lib:          'RMagick'
   version:      '&gt;= 2.11.1'
 
+thinking-sphinx:
+  optional:     yes
+  source:       'http://gemcutter.org'
+  lib:          'thinking_sphinx'
+  version:      '&gt;= 1.2.12'
+
 yamltest:
   version: '= 0.5.3'
 </diff>
      <filename>config/gems.yml</filename>
    </modified>
    <modified>
      <diff>@@ -186,6 +186,9 @@ module Zena
             nested_attributes_alias nested_alias
           end
 
+          # This is used by Sphinx brick or other 'rails association crawlers'.
+          self.has_many :dynamic_attributes, :foreign_key =&gt; 'owner_id', :table_name =&gt; options[:table_name], :class_name =&gt; 'DynAttribute'
+
           class_eval &lt;&lt;-END
             def self.dyn_attribute_options
               #{options.inspect}
@@ -200,6 +203,8 @@ module Zena
           # add all methods from the module &quot;AddActsAsMethod&quot; to the 'base' module
           base.extend  Zena::Use::DynAttributes::ClassMethods
 
+          # This is used by Sphinx brick or other 'rails association crawlers'.
+          base.has_many      :dynamic_attributes, :foreign_key =&gt; 'owner_id', :table_name =&gt; 'dyn_attributes', :class_name =&gt; 'DynAttribute'
           base.after_save    :save_dynamic_attributes
           base.after_destroy :destroy_attributes
           base.class_eval &lt;&lt;-END</diff>
      <filename>lib/zena/use/dyn_attributes.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ddd46e9479fcad72d621998e3deeeb4ac0e6db16</id>
    </parent>
  </parents>
  <author>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </author>
  <url>http://github.com/zena/zena/commit/3a122023ea7813384a9354d4e5761af6de41d1ea</url>
  <id>3a122023ea7813384a9354d4e5761af6de41d1ea</id>
  <committed-date>2009-11-04T13:35:06-08:00</committed-date>
  <authored-date>2009-11-04T03:44:01-08:00</authored-date>
  <message>Created a brick to enable fulltext search with Sphinx.</message>
  <tree>7501b0f572cb4c70045ff3eef76f3bed4f190848</tree>
  <committer>
    <name>Gaspard Bucher</name>
    <email>gaspard@teti.ch</email>
  </committer>
</commit>
