Closed shyrahnama closed 9 years ago
display_with is not thread safe. It better to add this check in your model if possible.
Perfect. Thanks for the quick reply!
On Thu Feb 12 2015 at 7:43:21 AM Abdelkader Boudih notifications@github.com wrote:
display_with is not thread safe. It better to add this check in your model if possible.
— Reply to this email directly or view it on GitHub https://github.com/bernat/best_in_place/issues/448#issuecomment-74081323 .
Should this be closed then?
Yep, it can be closed. Added an instance method to my model to return the default value and it works fine.
@shyrahnama Can you show how you did that ? I'm too facing the same problem but unable to solve that. Hoping you will help.
Hi there,
I'm trying to use display_with to show a default value if a field isn't set and it's not working at all
The model is a user model and we allow users to not have a timezone, in which case I want to show the default configured timezone.
Am I missing something obvious?
Thxs.