<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,28 +1,32 @@
 # inspired by http://www.rowtheboat.com/archives/32
 
-# have specs
-plugin 'rspec',
-  :git =&gt; 'git://github.com/dchelimsky/rspec.git'
-plugin 'rspec-rails',
-  :git =&gt; 'git://github.com/dchelimsky/rspec-rails.git'
-
-generate(&quot;rspec&quot;)
 
 # get all datamapper related gems (assume sqlite3 to be database)
 gem &quot;addressable&quot;, :lib =&gt; &quot;addressable/uri&quot;
-gem &quot;data_objects&quot;
 gem &quot;do_sqlite3&quot;
-gem &quot;dm-core&quot;
-gem &quot;rails_datamapper&quot;
+gem 'dm-validations'
+gem 'dm-timestamps'
+gem &quot;rspec&quot;, :lib =&gt; false
+gem &quot;rspec-rails&quot;, :lib =&gt; false
+gem &quot;datamapper4rail&quot;, :lib =&gt; 'datamapper4rails' # excuse the typo
 
 rake &quot;gems:install&quot;
 
+# have specs
+generate(&quot;rspec&quot;)
+
 # install datamapper rake tasks
-generate(&quot;dm-install&quot;)
+generate(&quot;dm_install&quot;)
 
-# fix config/environment.rb to work with datamapper instead of active_record
-run &quot;sed -i config/environment.rb -e 's/#.*config.plugins.*/config.plugins = [ :rails_datamapper, :all ]/'&quot;
+# fix config files to work with datamapper instead of active_record
 run &quot;sed -i config/environment.rb -e 's/#.*config.frameworks.*/config.frameworks -= [ :active_record ]/'&quot;
+run &quot;sed -i spec/spec_helper.rb -e 's/^\\s*config[.]/#\\0/'&quot;
+run &quot;sed -i test/test_helper.rb -e 's/^[^#]*fixtures/#\\0/'&quot;
+
+# fix a problem with missing class constants for models woth relations
+initializer 'preload_models.rb', &lt;&lt;-CODE
+require 'datamapper4rails/preload_models'
+CODE
 
 # set up git
 git :init</diff>
      <filename>datamapper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4dad584d4b556ca76861708955a883c5cd90100e</id>
    </parent>
  </parents>
  <author>
    <name>mkristian</name>
    <email>m.kristian@web.de</email>
  </author>
  <url>http://github.com/jeremymcanally/rails-templates/commit/939a0f5bc1d05694df2b98c488603263043fbdb5</url>
  <id>939a0f5bc1d05694df2b98c488603263043fbdb5</id>
  <committed-date>2009-04-09T15:37:04-07:00</committed-date>
  <authored-date>2009-03-21T11:12:31-07:00</authored-date>
  <message>use datamapper4rail to get things working

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>8a5e4122fc36f1c20a2a469ee2856b4d3d862491</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
