early-knife-34520
11/27/2025, 3:46 PMminiature-optician-85831
11/27/2025, 3:46 PMloud-jewelry-99127
11/27/2025, 3:58 PMdef field method on the base resource and set the default thereearly-knife-34520
11/27/2025, 3:59 PMloud-jewelry-99127
11/27/2025, 3:59 PMloud-jewelry-99127
11/27/2025, 3:59 PMloud-jewelry-99127
11/27/2025, 3:59 PMloud-jewelry-99127
11/27/2025, 4:01 PMearly-knife-34520
11/27/2025, 4:02 PMloud-jewelry-99127
11/27/2025, 4:03 PMearly-knife-34520
11/27/2025, 4:05 PMAvo.configure do |config|
config.date_format = "dd.LL.yyyy"
config.time_format = "dd.LL.yyyy HH:mm"
endearly-knife-34520
11/27/2025, 4:06 PMearly-knife-34520
11/27/2025, 4:07 PMfield in Avo::BaseResource is that I can choose the format based on the current user (assuming I have access to it there)loud-jewelry-99127
11/27/2025, 4:08 PMconfig.something normaly is a global configloud-jewelry-99127
11/27/2025, 4:09 PMdate_format and time_format are field options for a subset of fieldsloud-jewelry-99127
11/27/2025, 4:10 PMloud-jewelry-99127
11/27/2025, 4:10 PMloud-jewelry-99127
11/27/2025, 4:11 PMruby
Avo.configure do |config|
config.field_options_default = {
date_format: "dd.LL.yyyy",
time_at: ...,
...
}
endearly-knife-34520
11/27/2025, 4:25 PM...
config.field_options_default = {
date_format: -> { current_user.time.zone.format
}
...