Permalink
Browse files

upgraded Trucker to Rails 2.3.9 (legacy models are now loaded via con…

…fig.autoload_paths)
  • Loading branch information...
1 parent e6a803f commit b5d9c3d43a7a5556e96e1e1e511bc00af26ece91 @mokolabs committed Sep 9, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 README.rdoc
  2. +1 −1 generators/truck/truck_generator.rb
View
@@ -21,7 +21,7 @@ Trucker is a gem that helps migrate legacy data into a Rails app.
* Add legacy adapter to database.yml
* Add legacy base class
* Add legacy sub classes for all existing models
- * Add app/models/legacy to load path in Rails Initializer config block
+ * Add app/models/legacy to autoload_paths in Rails Initializer config block
* Generate sample migration task (using pluralized model names)
4. Update the legacy database adapter in <em>database.yml</em> with your legacy database info
@@ -27,7 +27,7 @@ def manifest
m.append "config/database.yml", snippet
- snippet = 'config.load_paths += %W( #{RAILS_ROOT}/app/models/legacy )'
+ snippet = 'config.autoload_paths += %W( #{RAILS_ROOT}/app/models/legacy )'
m.insert_after "config/environment.rb", snippet, '^Rails::Initializer\.run do.+$'
end

0 comments on commit b5d9c3d

Please sign in to comment.