Permalink
Browse files

Merge branch 'master' of github.com:appoxy/simple_record

  • Loading branch information...
2 parents 5b127b6 + 14ce224 commit d4e3737f0f579cd3db27de0d6825c8fa09c4ab2e @treeder treeder committed Feb 8, 2011
Showing with 22 additions and 1 deletion.
  1. +22 −1 README.markdown
View
@@ -212,13 +212,34 @@ Use per_thread connection mode and close the connection after each request.
### Disable ActiveRecord so you don't have to setup another database
-This is most helpful on windows so Rails doesn't need sqlite or mysql gems/drivers installed which are painful to install on windows. In environment.rb, add 'config.frameworks -= [ :active_record ]', should look something like:
+#### Rails 2
+
+This is most helpful on windows so Rails doesn't need sqlite or mysql gems/drivers installed which are painful to install on windows.
+In environment.rb, add 'config.frameworks -= [ :active_record ]', so it should look something like:
Rails::Initializer.run do |config|
config.frameworks -= [ :active_record ]
....
end
+#### Rails 3
+
+At the top of application.rb, comment out `require 'rails/all` and add the following:
+
+ #require 'rails/all'
+ %w(
+ action_controller
+ action_mailer
+ active_resource
+ rails/test_unit
+ ).each do |framework|
+ begin
+ require "#{framework}/railtie"
+ rescue LoadError
+ end
+ end
+
+This is the same as rails/all minus active_record.
## Large Objects (LOBS)

0 comments on commit d4e3737

Please sign in to comment.