you can check if it's a new_record? and only run your init on those

On Nov 4, 4:34 pm, Spiralis <[email protected]> wrote:
> Hi all,
>
> Anyone with some tips on how to give fields in models defaults when
> new'ed?
>
> I thought about accessors, but they are used always, not only when
> newed. I then thought about using initialize, but that too is used for
> all records not only on initialize.
>
> Any ideas?
>
> ~Ronny
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to