This project is archived and is in readonly mode.
Lazy generation of ActiveModel::Name attributes
Reported by Carlos Paramio | October 16th, 2009 @ 08:19 AM
I've created a patch for the ActiveModel::Name class. Instead of calculate all the attributes on instantiation of the class, attributes are generated and remembered when used.
I've also added some basic documentation for the methods, plus completed the test coverage of the class by adding tests for the human and cache_key methods.
Comments and changes to this ticket
-
Rohit Arondekar October 6th, 2010 @ 06:35 AM
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
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>