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.

Rails.configuration is broken

#3631

% ./script/console

Loading development environment (Rails 3.0.pre)
irb(main):001:0> Rails.configuration
NoMethodError: undefined method `configuration' for #<Auth::Application:0x000000026383c8>
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/core.rb:52:in `configuration'
    from (irb):1
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/commands/console.rb:53:in `start'
    from /home/rando/development/api/spud/auth/vendor/gems/dirs/rails/railties/lib/rails/commands/console.rb:10:in `start'
    from ./script/console:4:in `<main>'

Rails.configuration is calling @@application.configuration, which isn't defined anymore, but @@application.config is.

Reported by Paul Sadauskas (Rando) · December 29th, 2009 @ 10:47 PM

State: resolved
Milestone: 3.0.2
Assigned to: Carl Lerche Carl Lerche
Importance: Low

Activity

  1. José Valim
    José Valim
    • Milestone cleared.
    • Assigned user set to Carl Lerche

    January 2nd, 2010 @ 11:54 PM

  2. Rizwan Reza
    Rizwan Reza

    I think AppName::Application.config is the same as what he describes.

    January 3rd, 2010 @ 04:06 PM

  3. Rizwan Reza
    Rizwan Reza
    • Tag changed from configuration, rails3 to bugmash, configuration, rails3, review

    And now Rails.configuration also works.

    January 16th, 2010 @ 11:55 PM

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

    I fixed that a couple days ago.

    January 17th, 2010 @ 08:49 AM

  5. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to Low

    October 15th, 2010 @ 11:01 PM