This project is archived and is in readonly mode.

#6245 ✓committed
Nathaniel Bibler

[Patched] ActiveModel::Serialization Documentation Example Fix

Reported by Nathaniel Bibler | January 2nd, 2011 @ 02:11 AM

The documentation for ActiveModel::Serialization begins with an incredibly poor example of how to implement a the ActiveModel#attributes method. The hash generated does not correctly provide the local instance values and it memoizes the result - which, that alone is already a very poor practice.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages