public
Description: FixtureReplacement rails plugin (version 2 and on)
Homepage: http://replacefixtures.rubyforge.org/
Clone URL: git://github.com/smtlaissezfaire/fixturereplacement.git
smt (author)
Tue Dec 04 08:37:29 -0800 2007
commit  8f3870eaa17d56f97f7b538758c653a53821b219
tree    5753628e7ccfef2dfbf1b34f26c82dc1a090d611
parent  839951129fe7e0636ac48fe4e93204e3c021818b
100644 11 lines (9 sloc) 0.292 kb
1
2
3
4
5
6
7
8
9
10
11
module FixtureReplacement
<% ActiveRecord::Base.connection.tables.each do |table_name| -%>
<% begin table_name.classify.constantize -%>
<% columns = table_name.classify.constantize.columns -%>
  attributes_for :<%= table_name.singularize %> do |a|
    
  end
 
<% rescue; end -%>
<% end -%>
end