Rails 3:
In application.rb delete the line require 'rails/all' and add the following lines instead:
require "action_controller/railtie" require "action_mailer/railtie" require "active_resource/railtie" require "rails/test_unit/railtie" require "sprockets/railtie"
Also see Remove ActiveRecord in Rails 3 and see Active Model railscast
Rails 3.2.x:
You also need to delete / comment out this line in application.rb
config.active_record.whitelist_attributes = true
And remove / comment these two lines from development.rb
config.active_record.mass_assignment_sanitizer = :strict config.active_record.auto_explain_threshold_in_seconds = 0.5
Rails 2.x:
In config/environment.rb add (or uncomment) the line
config.frameworks -= [ :active_record, :active_resource, :action_mailer ]
This will cause Rails to not use these frameworks. (Note the almost invisible -= !)
Zabba Oct 17 2018-10-17 17:16
source share