This project is archived and is in readonly mode.

Can't run rails3 w/o active record
Reported by Paul Sadauskas (Rando) | December 28th, 2009 @ 05:45 PM
Title says it all.
Latest rails3 checkout,
e8ca22d129c1e93574e770dd69dc964be6686469, generated with
rails --skip-activerecord.
% cat config/application.rb | grep active_record
  config.frameworks -= [ :active_record, :action_mailer, :active_resource ]
% ruby config.ru
/home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/configuration.rb:175:in `read': No such file or directory - /home/rando/development/api/spud/auth/config/database.yml (Errno::ENOENT)
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/configuration.rb:175:in `database_configuration'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/activerecord/lib/active_record/rails.rb:23
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/initializable.rb:29:in `instance_exec'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/initializable.rb:29:in `run'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/initializable.rb:67:in `run_initializers'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/initializable.rb:66:in `each'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/initializable.rb:66:in `run_initializers'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/application.rb:38:in `initialize!'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/application.rb:12:in `__send__'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/application.rb:12:in `initialize!'
    from /home/rando/development/api/spud/auth/config/environment.rb:5
    from config.ru:2:in `require'
    from config.ru:2
So it appears that even though AR has been removed from frameworks, the AR code is still getting initialized in App.initialize!.
Comments and changes to this ticket
- 
            
         Paul Sadauskas (Rando) December 28th, 2009 @ 07:16 PM(11:46:56 AM) Yehuda Katz: config.frameworks doesn't do anything anymore (11:47:01 AM) Yehuda Katz: just don't bundle AR and you're good to go (11:47:28 AM) Yehuda Katz: how are you bundling? (11:47:43 AM) Paul: bundler, gem "rails", :git => ... (11:47:49 AM) Yehuda Katz: ok (11:47:53 AM) Yehuda Katz: so you want to change that to: (11:47:58 AM) Yehuda Katz: git "…" (11:48:03 AM) Yehuda Katz: gem "actionpack" (11:48:05 AM) Yehuda Katz: gem "…" (11:48:06 AM) Yehuda Katz: etc. (11:48:11 AM) Yehuda Katz: put railties up top (11:48:20 AM) Yehuda Katz: you want railties, ap, and possibly am (11:48:31 AM) Yehuda Katz: we moved all the initialization logic for each component into the component 
- 
            
         Paul Sadauskas (Rando) December 28th, 2009 @ 07:17 PMOnce again, with formatting: (11:46:56 AM) Yehuda Katz: config.frameworks doesn't do anything anymore (11:47:01 AM) Yehuda Katz: just don't bundle AR and you're good to go (11:47:28 AM) Yehuda Katz: how are you bundling? (11:47:43 AM) Paul: bundler, gem "rails", :git => ... (11:47:49 AM) Yehuda Katz: ok (11:47:53 AM) Yehuda Katz: so you want to change that to: (11:47:58 AM) Yehuda Katz: git "…" do (11:48:03 AM) Yehuda Katz: gem "actionpack" (11:48:05 AM) Yehuda Katz: gem "…" (11:48:06 AM) Yehuda Katz: etc. (11:48:11 AM) Yehuda Katz: put railties up top (11:48:20 AM) Yehuda Katz: you want railties, ap, and possibly am (11:48:31 AM) Yehuda Katz: we moved all the initialization logic for each component into the component
- 
         José Valim January 2nd, 2010 @ 11:55 PM- Assigned user set to Yehuda Katz (wycats)
 Even though, this need to be fixed to work with rubygems as well. 
- 
         
- 
         José Valim May 25th, 2010 @ 01:31 PM- State changed from open to invalid
- Assigned user changed from Yehuda Katz (wycats) to José Valim
 It also works with rubygems now. Closing. 
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>
People watching this ticket
Tags
Referenced by
- 
         3616 
          config.frameworks -= [ :active_record ] doesn't work
        Duplicate of #3625 3616 
          config.frameworks -= [ :active_record ] doesn't work
        Duplicate of #3625
 Jeremy Kemper
      Jeremy Kemper
 José Valim
      José Valim
 Paul Sadauskas (Rando)
      Paul Sadauskas (Rando)
 Ryan Bigg
      Ryan Bigg
 Yehuda Katz (wycats)
      Yehuda Katz (wycats)