This project is archived and is in readonly mode.
rake generating depreciation warnings.
Reported by Dave Gerton | July 28th, 2010 @ 03:35 PM
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)
Comments and changes to this ticket
-
Dan Weinand July 28th, 2010 @ 08:00 PM
Change Rails::Application.load_tasks in your Rakefile to Ch::Application.load_tasks
-
Rémy Coutable July 28th, 2010 @ 09:07 PM
Personally, even after doing this change, I still got the deprecation warning.
-
Dave Gerton July 28th, 2010 @ 10:32 PM
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.
-
Dave Gerton July 28th, 2010 @ 10:40 PM
I also verified that rails new puts the correct namespace in Rakefile so this can be closed.
-
Neeraj Singh July 29th, 2010 @ 01:10 AM
- State changed from new to resolved
- Importance changed from to Low
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>