FCGI: warning: Object#id will be deprecated; use Object#obje

I am seeing some strange entries in my Apache error log from FCGI that I
don’t understand.

I have pasted one of the lines below.

Anyone seen this or know what might be going on?

[Wed Dec 28 08:35:50 2005] [error] [client 24.115.131.100] FastCGI:
server
“/home/www/apps/appname/public/dispatch.fcgi” stderr:
/home/www/apps/appname/app/views/photo/fullsize.rhtml:26: warning:
Object#id
will be deprecated; use Object#object_id, referer:
http://www.mydomain.com/photo/fullsize/142

There are literally hundreds of thousands of these lines (400MB worth).

Thanks.

— Hunter’s Lists [email protected] wrote:

“/home/www/apps/appname/public/dispatch.fcgi”
stderr:

/home/www/apps/appname/app/views/photo/fullsize.rhtml:26:

warning: Object#id
will be deprecated; use Object#object_id, referer:
http://www.mydomain.com/photo/fullsize/142

There are literally hundreds of thousands of these
lines (400MB worth).

There is an unfortunate name space collision, that is
being mitgated by transitioning to object_id. This
will eventually be fixed I understand, but it takes
time to get it right.

The following code in environment.rb will make it go
away, but USE AT YOUR OWN RISK. This is risky code,
and I haven’t been able to figure out why it works,
but it does for us. If you have plenty of test
coverage, it shouldn’t be a problem. We have several
patches like this in a single file that is referenced
from environment.rb

patching object_id deprecation warnings

STDERR << “Patching object_id deprecation warnings\n”
module ActionView
module Helpers
class InstanceTag
def value
object.send(@method_name == ‘id’ ? ‘object_id’
: @method_name) unless object.nil?
end
end
end
end

Shawn


Yahoo! DSL ? Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com