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.

rake generating depreciation warnings.

#5229

After upgrading from beta4 to the RC this morning, rake db:seed now issues this warning:

DEPRECATION WARNING: Calling a method in Rails::Application is deprecated, please call it
directly in your application constant Ch::Application. (called from method_missing at
/[snip]/.rvm/gems/ruby-1.8.7-p299/gems/railties-3.0.0.rc/lib/rails/application.rb:77)

Reported by Dave Gerton · July 28th, 2010 @ 03:35 PM

State: resolved
Milestone: none
Assigned to: nobody
Importance: Low

Activity

  1. Dan Weinand
    Dan Weinand

    Change Rails::Application.load_tasks in your Rakefile to Ch::Application.load_tasks

    July 28th, 2010 @ 08:00 PM

  2. Rémy Coutable
    Rémy Coutable

    Personally, even after doing this change, I still got the deprecation warning.

    July 28th, 2010 @ 09:07 PM

  3. Dave Gerton
    Dave Gerton

    It worked for me, though. My application is named Ch, hence Ch::Application.load_tasks. Make sure yours matches the name of the module in config/application.rb.

    July 28th, 2010 @ 10:32 PM

  4. Dave Gerton
    Dave Gerton

    I also verified that rails new puts the correct namespace in Rakefile so this can be closed.

    July 28th, 2010 @ 10:40 PM

  5. Neeraj Singh
    Neeraj Singh
    • State changed from new to resolved
    • Importance changed from to Low

    July 29th, 2010 @ 01:10 AM