search for: last_artist

Displaying 1 result from an estimated 1 matches for "last_artist".

2006 Dec 26
0
alias_method_chain vs. redefined method with super
...e:string) - Duo (first_artist:Artist, other_artist:Artist) I''m using single table inheritance to store all of the fields for the various Artist types in one table. I want the ''name'' attribute to be derived for Musicians (first_name+last_name) and Duos (first_artist.name+last_artist.name) and persisted so I can sort all Artists by name. I added code to Musician which redefined first_name= as: class Musician < Artist def first_name= (first_name) super(first_name) update_name # sets name to first + last end ... end For the Duo class, however, this didn'...