As far as I know the way to do this is to change this line in
config/application.rb:

require "rails/all"

To these lines (this is most of the code from "rails/all"):

require "rails"

%w(
  action_controller
  action_mailer
  active_resource
  rails/test_unit
).each do |framework|
  begin
    require "#{framework}/railtie"
  rescue LoadError
  end
end

I've removed active_record from the above array.


On 2 September 2010 11:07, Anuj Dutta <[email protected]> wrote:

> What's the best way to exclude ActiveRecord in Rails3?
>
>
> In Rails2, one could just do:
>
> *config.frameworks -= [ :active_record ]*
>
> in the configuration block in environment.rb. Is it possible in Rails3?
>
> Thanks.
>
> Anuj
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Core" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<rubyonrails-core%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/rubyonrails-core?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to