On 2 Maj, 15:40, Martin Gamsjaeger <[email protected]> wrote: > Marius, > > When overwriting property readers and writers, you can use the > #attribute_get and #attribute_set methods. > > def id > attribute_get(:id).to_s + 'foo/baz/bar' > end > > #attribute_set takes the name as the first, and the value as the > second parameter.
Thanks for reply, but it doesn't work for me. Method id isn't executed. -- You received this message because you are subscribed to the Google Groups "DataMapper" 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/datamapper?hl=en.
