Aha...cool. Thanks. Anuj
On 2 September 2010 02:20, Rodrigo Rosenfeld Rosas <[email protected]>wrote: > For a new application, you can do: > > rails new myapp --skip-active-record > > Em 01-09-2010 22:17, Anuj Dutta escreveu: > >> Thanks. I thought there might be a better way to achieve the same. >> >> Anuj >> >> On 2 September 2010 02:14, Ryan Bigg <[email protected] <mailto: >> [email protected]>> wrote: >> >> 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] >> <mailto:[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] >> <mailto:[email protected]>. >> >> To unsubscribe from this group, send email to >> >> [email protected]<rubyonrails-core%[email protected]> >> >> <mailto:rubyonrails-core%[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] >> <mailto:[email protected]>. >> >> To unsubscribe from this group, send email to >> >> [email protected]<rubyonrails-core%[email protected]> >> >> <mailto:rubyonrails-core%[email protected]<rubyonrails-core%[email protected]> >> >. >> >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> >> >> >> >> -- >> Anuj DUTTA >> -- >> 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]<rubyonrails-core%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > > -- Anuj DUTTA -- 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.
