From: nobuyoshi nakada Date: 2005-12-13T10:48:38+09:00 Subject: Re: ruby 1.8.4 rc breaks alias_method/rails in bad ways Hi, At Tue, 13 Dec 2005 05:36:44 +0900, James Edward Gray II wrote in [ruby-core:06877]: > > I'm *assuming* the change is that we've updated the vendor/rails/ > > directory to a more recent version. I'm still running Ruby 1.8.2, > > but was when I was seeing the errors too. Might make sure your > > Rails is up-to-date. > > As usual, I was wrong. The /vendor/rails/ is the same version. My > partner changed the constant definitions to avoid the warnings: > > OUR_CONST = ... unless const_defined? "OUR_CONST" Similar workaround could work to wrap methods. alias foo bar unless method_defined?(:foo) -- Nobu Nakada