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


-- 
Web database: http://www.myowndb.com
Free Software Developers Meeting: http://www.fosdem.org

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to