You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, calling _before_type_cast on a setting_accessor will return nil if no custom value was set yet.
Instead, it should return the default value to mimic AR's behaviour.
The main reason to fix this is that Rails' text_field form helper looks for the attribute's ´value_before_type_cast` instead of just calling it - leading to an empty input field.
The text was updated successfully, but these errors were encountered:
Currently, calling
_before_type_cast
on asetting_accessor
will returnnil
if no custom value was set yet.Instead, it should return the default value to mimic AR's behaviour.
The main reason to fix this is that Rails'
text_field
form helper looks for the attribute's ´value_before_type_cast` instead of just calling it - leading to an empty input field.The text was updated successfully, but these errors were encountered: