This project is archived and is in readonly mode.
config.frameworks -= [ :active_record ] doesn't work
Reported by sarniak (at gmail) | December 25th, 2009 @ 10:38 PM
After generating new app with -O option, it tries to load database.yml
I use current version from github.
Comments and changes to this ticket
-
Piotr Sarnacki December 28th, 2009 @ 12:55 AM
I'm pretty sure that this was broken in ticket: http://github.com/rails/rails/commit/d2bd71a145ddc5e3e3750edc9a09ea...
Is there any other way to prevent loading of active_record? Maybe some magic in gem bundler?
-
Piotr Sarnacki December 28th, 2009 @ 02:25 AM
I've found a way to make it work, but it's a nasty hack ;-) Fix would be appreciated :)
-
Piotr Sarnacki December 28th, 2009 @ 06:25 AM
In case you want the details.
It's easy to choose a few parts of rails using gem bundler:
# Gemfile gem "railties", :git => "git://github.com/rails/rails.git" gem "actionpack", :git => "git://github.com/rails/rails.git", :require_as => "action_pack" gem "activeresource", :git => "git://github.com/rails/rails.git", :require_as => "active_resource" gem "activesupport", :git => "git://github.com/rails/rails.git", :require_as => "active_support" gem "actionmailer", :git => "git://github.com/rails/rails.git", :require_as => "action_mailer"
The problem is in rails.rb file (http://github.com/rails/rails/blob/1c47d04ea5ac19601b316daf8fdc6f38...) which is basically require'ing all of the frameworks.
I've added some path from my app to LOAD_PATH and put my own rails.rb file there, so I could remove those hardcoded strings. It's working for now, but it would be nice to have config.frameworks in use again :)
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>