Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Multi-parameter assignment refactoring

#3317

This cleans up the internal implementation, with most of the code being moved into Multiparameter:Attribute and Multiparameter::Attributes classes. I would like to expand on these changes and look into:

1) Moving typecasting responsibility to the attribute writer methods, e.g., allowing for @record.published_on = [ 2009, 6, 3 ].
2) Move the multi-parameter parsing logic from ActiveRecord to action pack. This would cleanup the attributes= implementation, among other things.

Any feedback on the patched implementation, or thoughts on the other proposals is much appreciated! :)

Reported by Eric Chapweske · October 4th, 2009 @ 12:46 AM

State: stale
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Rohit Arondekar
    Rohit Arondekar
    • 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.

    October 6th, 2010 @ 06:41 AM