to_json failing with column named test

Hi,

I have a model with a column named test, which causes trouble to to_json.

The problems comes from this line http://github.com/rails/rails/blob/2-3-stable/activerecord/lib/active_record/serialization.rb#LID78

  serializable_names.each { |name| serializable_record[name] = @record.send(name) }

and more specifically the call to send with the column name passed as argument. The problem comes from the fact that test is an already defined private method, which is then called rather than the expected accessor....

I've tested it with this code

  serializable_names.each { |name| serializable_record[name] = @record[name] }

and it works fine, but no accessor would be used then.

Anyone having a suggestion for a solution?

Thanks

Raphaël