Closed vladshcherbin closed 9 years ago
It probably is possible but I wouldn't recommend it :-). You would have to override default behavior options.
Astro.behaviors.timestamp.options.createdFieldName = 'created_at';
@jagi thanks for a possible workaround ;) so what would you recommend to do in such case?
Hmm right now I think you can use this approach :). Just make sure that you change the options before any class definition.
Thanks, @jagi . I guess, I'll use class definition for now. Maybe later you will add a better way.
Now, we can add the timestamp behaviour and specify, how the fields are named in the class. But is there a way to specify the names globally? For example, to use
created_at
andupdated_at
everywhere, where this behaviour is used.