Hi guys, I've been looking at hooks for creating a uid from one of the allowed properties, e.g. a random merge of the title[0..7] and created_at epoch.
Haven't had much luck with hooks, doesn't self.save my update on before :save, or using Proc.. Any ideas on how I could generate a UID on newly created records from within the model.. don't mind using validations and pushing that to a custom hook but haven't had much luck getting it to work so far.. Any help greatly appreciated.. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
