This project is archived and is in readonly mode.
config.frameworks -= [ :active_record ] doesn't work
-
Piotr Sarnacki
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
I've found a way to make it work, but it's a nasty hack ;-) Fix would be appreciated :)
-
Piotr Sarnacki
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 :)
-
José Valim
- State changed from new to duplicate
Duplicate of #3625 Can't run rails3 w/o active record