annotate_models
annotate_models copied to clipboard
Weird behavior of empty hide_default_column_types
When hide_default_column_types configuration option is empty it falls back to the default, which is NO_LIMIT_COL_TYPES = %w(json jsonb hstore) (https://github.com/ctran/annotate_models/blob/develop/lib/annotate/annotate_models.rb#L299).
Is there a reason for this strange behavior? Could we change it? Currently, there's no way of clearing this setting to show defaults for all column types. Setting it to xxx will work, but... 🙃
I'm guessing that previously there was no hide_default_column_types configuration option, hence the fallback to the default value. Would distinguishing between this option missing (being nil`) and being set to empty be a proper solution?