-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Properly format boolean values in attribute tables #4602
Comments
@AlexVPopov , what about null/nil values? |
Maybe we can add |
@AlexVPopov, I didn't test but according to current implementations nulls are displayed as status_tag 'false' if database column is boolean and just nil in all other cases .. |
@Fivell I need to take and do a research on this, as it's been a long time since I proposed this. |
@Fivell nice, thank you. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I propose the following change:
in ActiveAdmin::ViewHelpers::DisplayHelper
The idea is that currently the value of boolean columns is displayed via
status_tag
and the result of methods, that returntrue
/false
, is displayed via a ✔/✗. In an attributes table, where some of the rows are for boolean columns and some of the rows are for methods returning booleans, the table looks inconsistent.Would such a PR be accepted?
The text was updated successfully, but these errors were encountered: