Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

config.frameworks -= [ :active_record ] doesn't work

#3616

After generating new app with -O option, it tries to load database.yml

I use current version from github.

Reported by sarniak (at gmail) · December 25th, 2009 @ 10:38 PM

State: duplicate
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Piotr Sarnacki
    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?

    December 28th, 2009 @ 12:55 AM

  2. Piotr Sarnacki
    Piotr Sarnacki

    I've found a way to make it work, but it's a nasty hack ;-) Fix would be appreciated :)

    December 28th, 2009 @ 02:25 AM

  3. Piotr Sarnacki
    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 :)

    December 28th, 2009 @ 06:25 AM

  4. José Valim
    José Valim
    • State changed from new to duplicate

    January 2nd, 2010 @ 11:57 PM