Good timing, I was just thinking that annotate would be more useful in my models and fixtures.<br><br><div><span class="gmail_quote">On 5/27/07, <b class="gmail_sendername">Aníbal Rojas</b> &lt;<a href="mailto:anibal@rojas.com.ve">
anibal@rojas.com.ve</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">I have found useful to have the table information associated to models
<br>dispåayed in the models and fixtures&nbsp;&nbsp;files of my rails applications.<br>If you want to add this information to the spec_fixtures and specs add<br>the following patch to your plugin.<br><br>Index: vendor/plugins/annotate_models/lib/annotate_models.rb
<br>===================================================================<br>--- vendor/plugins/annotate_models/lib/annotate_models.rb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (revision 45)<br>+++ vendor/plugins/annotate_models/lib/annotate_models.rb&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (working copy)
<br>@@ -1,7 +1,8 @@<br> require &quot;config/environment&quot;<br><br> MODEL_DIR&nbsp;&nbsp; = File.join(RAILS_ROOT, &quot;app/models&quot;)<br>-FIXTURE_DIR = File.join(RAILS_ROOT, &quot;test/fixtures&quot;)<br>+SPEC_DIR&nbsp;&nbsp;&nbsp;&nbsp;= File.join
(RAILS_ROOT, &quot;spec/models&quot;)<br>+FIXTURE_DIR = File.join(RAILS_ROOT, &quot;spec/fixtures&quot;)<br><br> module AnnotateModels<br><br>@@ -75,6 +76,9 @@<br>&nbsp;&nbsp;&nbsp;&nbsp; model_file_name = File.join(MODEL_DIR, klass.name.underscore
 + &quot;.rb&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp; annotate_one_file(model_file_name, info)<br><br>+&nbsp;&nbsp;&nbsp;&nbsp;spec_file_name = File.join(SPEC_DIR, klass.name.underscore + &quot;_spec.rb&quot;)<br>+&nbsp;&nbsp;&nbsp;&nbsp;annotate_one_file(spec_file_name, info)<br>+<br>&nbsp;&nbsp;&nbsp;&nbsp; fixture_file_name = 
File.join(FIXTURE_DIR, klass.table_name + &quot;.yml&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp; annotate_one_file(fixture_file_name, info)<br>&nbsp;&nbsp; end<br><br>--<br>Aníbal Rojas<br><a href="http://www.rubycorner.com">http://www.rubycorner.com</a><br><a href="http://www.hasmanydevelopers.com">
http://www.hasmanydevelopers.com</a><br>_______________________________________________<br>rspec-users mailing list<br><a href="mailto:rspec-users@rubyforge.org">rspec-users@rubyforge.org</a><br><a href="http://rubyforge.org/mailman/listinfo/rspec-users">
http://rubyforge.org/mailman/listinfo/rspec-users</a><br></blockquote></div><br>