I want to keep compact_show_view = true, which I understand to be defined as "anything non-nil should show up in show view"
I have a boolean field, and thus I want it to show up in show view when it is set to false:
The show template does properly use #nil? as the check for whether or not to display values:
- unless values[index].nil? && RailsAdmin::config.compact_show_view
The problem is that the values array is constructed by calling #presence on the formatted_value:
values = fields.map{ |f| f.formatted_value.presence }
Unfortunately,
so
> false.presence.nil?
=> true
I want to keep
compact_show_view = true, which I understand to be defined as "anything non-nil should show up in show view"I have a boolean field, and thus I want it to show up in show view when it is set to
false:The show template does properly use
#nil?as the check for whether or not to display values:The problem is that the
valuesarray is constructed by calling#presenceon theformatted_value:Unfortunately,
so