On the subject of error messages, with deprecations specifically in
mind, I suggest the following approach at least be considered.
Establish a deprecated_methods_index library at the top level of Rails
so that, when someone finally decides to upgrade their Rails-1.0.6 app
to Rails-whatever, instead of getting:
"undefined local variable or method `whatever'"
(which is generated by ruby itself and not by Rails)
one obtains the output from something like this:
def whatever(*parms)
puts("whatever method is deprecated and was removed in rails-x.y.z.")
puts("Use other_one method instead.")
end
If these are all kept in one place surely it would not be too difficult
to maintain? Are there any downsides to this approach, other than having
to write four lines of code for every deprecated method?
I LOVE it!
James you are the MAN.
Just suggesting a reasonable solution is awesome and I really mean it.
I would hire you in an instant!
No sly insults or anything in your message, now that's the way forward.
Give me your email and I'll paypal you right now. I use
junk@snap2web.com on public forums.