Open
Description
I would like to pass a list of fields to Hirb.enable
that, by default, hides these fields in all tables that Hirb creates. Something like Hirb.enable {width:150, height:200, hide_fields: [:field_name, :another_field_name]}. Of course, this could then be overwritten by explicitly calling
Hirb.table object_name, fields:[:field_name]`
I think this would be very helpful in a wide number of cases, as many objects have (database) fields that are not interesting when inspecting them most of the time. An example would be the created_at
and updated_at
timestamps that Rails models have.
Metadata
Assignees
Labels
No labels