Add deprecation warnings and their solution or link to available solutions.
Open your Rakefile
and add the following line above YourApp::Application.load_tasks
:
YourApp::Application.class_eval do
include Rake::DSL
end
Update the spreadsheet gem Show archive.org snapshot to its latest version (has no dependencies). See this issue Show archive.org snapshot .
See this note
Update will_paginate gem Show archive.org snapshot to version >= 2.3.15
This warning occurs for non active record models. Overwrite the id-Method in the model (no method body needed)
Don't use Array(...)
or #to_s
to coerce arbitrary objects into an Array. Use #listify
instead.
Upgrade gems that call #request_uri
. Some gems that do this (like ssl_requirement) are no longer maintained. In that case you can copy the following hack to config/initializers/undeprecate_request_uri.rb
:
module ActionDispatch
module Http
module URL
def request_uri
fullpath
end
end
end
end
If Ruby complains about a deprecated method being, called, you can overwrite this method, so it raises an error. This will give you a stack trace during runtime:
Object.class_eval do
def to_a
raise 'trace'
end
end
Unfortunately this won't help you with every deprecation warning you will encounter. We tried to use our debug message hunter for this purpose, but to no avail.